Skip to content

Commit

Permalink
ci: Use parallel code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason3S committed Nov 17, 2020
1 parent c61478d commit 4171ad8
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,72 +17,95 @@ jobs:

- run: npm ci

- run: npm run gen-coverage
- run: npm run coverage

- name: Coveralls cspell
uses: coverallsapp/github-action@v1.1.2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./packages/cspell/coverage/lcov.info
flag-name: cspell
parallel: true

- name: Coveralls cspell-glob
uses: coverallsapp/github-action@v1.1.2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./packages/cspell-glob/coverage/lcov.info
flag-name: cspell-glob
parallel: true

- name: Coveralls cspell-io
uses: coverallsapp/github-action@v1.1.2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./packages/cspell-io/coverage/lcov.info
flag-name: cspell-io
parallel: true

- name: Coveralls cspell-lib
uses: coverallsapp/github-action@v1.1.2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./packages/cspell-lib/coverage/lcov.info
flag-name: cspell-lib
parallel: true

- name: Coveralls cspell-tools
uses: coverallsapp/github-action@v1.1.2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./packages/cspell-tools/coverage/lcov.info
flag-name: cspell-tools
parallel: true

- run: head ./packages/cspell-tools/coverage/lcov.info

- name: Coveralls cspell-trie
uses: coverallsapp/github-action@v1.1.2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./packages/cspell-trie/coverage/lcov.info
flag-name: cspell-trie
parallel: true

- name: Coveralls cspell-trie-lib
uses: coverallsapp/github-action@v1.1.2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./packages/cspell-trie-lib/coverage/lcov.info
flag-name: cspell-trie-lib
parallel: true

- run: head ./packages/cspell-trie-lib/coverage/lcov.info

- name: Coveralls cspell-trie2-lib
uses: coverallsapp/github-action@v1.1.2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./packages/cspell-trie2-lib/coverage/lcov.info
flag-name: cspell-trie2-lib
parallel: true

- name: Coveralls cspell-util-bundle
uses: coverallsapp/github-action@v1.1.2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./packages/cspell-util-bundle/coverage/lcov.info
flag-name: cspell-util-bundle
parallel: true

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
directory: ./packages/*/coverage/

finished:
needs: coverage
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@v1.1.2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true

0 comments on commit 4171ad8

Please sign in to comment.