Skip to content

Commit

Permalink
add coveralls parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
alexwebgr committed Mar 8, 2024
1 parent c3bf272 commit bb1527c
Showing 1 changed file with 25 additions and 6 deletions.
31 changes: 25 additions & 6 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ jobs:
test:

runs-on: ubuntu-latest

strategy:
matrix:
test_number:
- 1
- 2
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
Expand All @@ -30,9 +34,24 @@ jobs:
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Run tests
run: bundle exec rake
- name: SimpleCov+ Action
uses: joshmfrankel/[email protected]
# - name: SimpleCov+ Action
# uses: joshmfrankel/[email protected]
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Test ${{ matrix.test_number }}
run: make test-coverage-${{ matrix.test_number }}
- name: Coveralls Parallel
uses: coverallsapp/github-action@v2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Coveralls GitHub Action
uses: coverallsapp/[email protected]
flag-name: run-${{ join(matrix.*, '-') }}
parallel: true
finish:
needs: test
if: ${{ always() }}
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@v2
with:
parallel-finished: true
carryforward: "run-1,run-2"

0 comments on commit bb1527c

Please sign in to comment.