Skip to content

Commit

Permalink
ci(github): use the node:15-alpine container for coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
vansergen committed Apr 22, 2021
1 parent f004299 commit fc0a999
Showing 1 changed file with 5 additions and 22 deletions.
27 changes: 5 additions & 22 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,43 +38,26 @@ jobs:
- name: commitlint
run: npm run commitlint:all

coverage_parallel:
coverage:
needs: [test]

runs-on: ubuntu-latest

container: node:15-alpine

steps:
- uses: actions/checkout@main

- uses: actions/setup-node@main
with:
node-version: ${{ matrix.node }}
check-latest: true

- name: Install dependencies
run: npm ci

- name: Coverage
run: npm run coverage

- name: Coveralls Parallel
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
flag-name: node:${{ matrix.node }}
parallel: true

coverage_finished:
needs: [test, coverage_parallel]

runs-on: ubuntu-latest

steps:
- name: Coveralls Finished
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true

docs:
runs-on: ubuntu-latest
Expand All @@ -99,7 +82,7 @@ jobs:
run: npm run publish:test

release:
needs: [test, coverage_parallel, coverage_finished]
needs: [test, coverage, docs]

runs-on: ubuntu-latest

Expand Down

0 comments on commit fc0a999

Please sign in to comment.