test: Use separate linter job.

This commit is contained in:
Ruben Verborgh 2020-12-07 23:17:54 +01:00
parent 4381222ae2
commit c182d252b1

View File

@ -9,6 +9,16 @@ on:
- master - master
jobs: jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 14.x
- run: npm ci --ignore-scripts
- run: npm run lint
test: test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
@ -32,7 +42,6 @@ jobs:
with: with:
node-version: ${{ matrix.node-version }} node-version: ${{ matrix.node-version }}
- run: npm ci - run: npm ci
- run: npm run lint
- run: npm run validate - run: npm run validate
- run: npm run test:unit - run: npm run test:unit
- name: Coveralls - name: Coveralls
@ -43,12 +52,12 @@ jobs:
parallel: true parallel: true
- run: npm run test:integration - run: npm run test:integration
- run: npm run test:deploy - run: npm run test:deploy
finish:
coveralls:
needs: test needs: test
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Coveralls Finished - uses: coverallsapp/github-action@master
uses: coverallsapp/github-action@master
with: with:
github-token: ${{ secrets.github_token }} github-token: ${{ secrets.github_token }}
parallel-finished: true parallel-finished: true