Merge pull request #6090 from rubyforgood/dependabot/npm_and_yarn/hot… #3654
This file contains 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: yarn lint | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- '**/*.js' | |
- '**/*.json' | |
- '**/*.jsx' | |
- 'yarn.lock' | |
- '.github/workflows/*.yml' | |
pull_request: | |
branches: | |
- main | |
paths: | |
- '**/*.js' | |
- '**/*.json' | |
- '**/*.jsx' | |
- 'yarn.lock' | |
- '.github/workflows/*.yml' | |
jobs: | |
yarn_lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.nvmrc' | |
- run: yarn | |
- run: yarn lint | |
- run: yarn test |