fixed incorrect it text #16602
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Lint | |
| on: | |
| push: | |
| pull_request: | |
| types: | |
| # defaults | |
| - opened | |
| - synchronize | |
| - reopened | |
| # custom | |
| - ready_for_review # required for Github-created PRs | |
| jobs: | |
| rubocop: | |
| name: Rubocop | |
| runs-on: ubuntu-latest | |
| env: | |
| # Directory to cache Rubocop processing. Support added in 0.9.0 but | |
| # preparing this in advance of upgrade as it is side effect free. | |
| RUBOCOP_CACHE_ROOT: ".rubocop-cache" | |
| BUNDLE_WITHOUT: "cucumber deployment profile development default test" | |
| steps: | |
| - name: Checkout Repository | |
| uses: sanger/.github/.github/actions/setup/checkout@master | |
| - name: Setup Ruby | |
| uses: sanger/.github/.github/actions/setup/ruby@master | |
| - name: Cache Rubocop | |
| uses: sanger/.github/.github/actions/setup/cache@master | |
| with: | |
| path: ${{ env.RUBOCOP_CACHE_ROOT }} | |
| key: ${{ runner.os }}-rubocop-${{ hashFiles('**/.rubocop_todo.yml') }} | |
| restore-keys: | | |
| ${{ runner.os }}-rubocop- | |
| ${{ runner.os }}- | |
| # Actually run our cops with flags to improve the details of lint errors | |
| # and parallel to try and improve speed | |
| - name: Run rubocop | |
| run: bundle exec rubocop --extra-details --display-style-guide --parallel --format github --format progress | |
| - name: Verify rubocop config | |
| run: bundle exec ruboclean --preserve-comments --preserve-paths --verify | |
| prettier: | |
| name: Prettier | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: sanger/.github/.github/actions/setup/checkout@master | |
| - name: Setup Ruby | |
| uses: sanger/.github/.github/actions/setup/ruby@master | |
| - name: Setup Node | |
| uses: sanger/.github/.github/actions/setup/node@master | |
| - name: Set up yarn | |
| run: yarn install | |
| - name: Run prettier | |
| run: yarn prettier --check . | |
| yarn-lint: | |
| name: Yarn lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: sanger/.github/.github/actions/setup/checkout@master | |
| - name: Setup Node | |
| uses: sanger/.github/.github/actions/setup/node@master | |
| - name: Set up yarn | |
| run: yarn install | |
| - name: Run yarn lint | |
| run: yarn lint | |
| yard-junk: | |
| name: Yard junk | |
| runs-on: ubuntu-latest | |
| env: | |
| BUNDLE_WITHOUT: "cucumber deployment profile development default test" | |
| steps: | |
| - name: Checkout Repository | |
| uses: sanger/.github/.github/actions/setup/checkout@master | |
| - name: Setup Ruby | |
| uses: sanger/.github/.github/actions/setup/ruby@master | |
| - name: Run yard-junk | |
| run: bundle exec yard-junk --sanity |