No need for X amount of different Node.js version to all run the linting as part of their CI rutine. Easier to just run that once, completely separate from the unit tests.tags/v4.2.0
| @@ -3,6 +3,18 @@ name: Verify changes | |||||
| on: [push, pull_request] | on: [push, pull_request] | ||||
| jobs: | jobs: | ||||
| lint: | |||||
| runs-on: ubuntu-latest | |||||
| steps: | |||||
| - uses: actions/checkout@v2 | |||||
| - name: Setup Node.js | |||||
| uses: actions/setup-node@v1 | |||||
| with: | |||||
| node-version: 14.x | |||||
| - run: npm install | |||||
| - run: npm run test-lint | |||||
| tests: | tests: | ||||
| runs-on: ubuntu-latest | runs-on: ubuntu-latest | ||||
| @@ -21,7 +33,7 @@ jobs: | |||||
| - name: npm install and test | - name: npm install and test | ||||
| run: | | run: | | ||||
| npm install | npm install | ||||
| npm test | |||||
| npm run test-unit | |||||
| tests-on-legacy: | tests-on-legacy: | ||||
| runs-on: ubuntu-latest | runs-on: ubuntu-latest | ||||