Skip to content

Commit

Permalink
Fix: coveralls closing builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
dblock committed Jul 14, 2024
1 parent efb0cb8 commit d39d888
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- { ruby: "3.3" }
- { ruby: ruby-head, ignore: true }
- { ruby: jruby-head, ignore: true }
name: test (ruby=${{ matrix.entry.ruby }}, concurrency=${{ matrix.entry.concurrency || 'none' }})
name: test (ruby=${{ matrix.entry.ruby }}${{ matrix.entry.concurrency && ', concurrency=' && matrix.entry.concurrency || 'none' }})
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -35,8 +35,21 @@ jobs:
RACK_ENV: test
run: bundle exec rake
- name: Coveralls
uses: coverallsapp/github-action@master
uses: coverallsapp/github-action@v2
with:
parallel: true
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Coveralls Finished
uses: coverallsapp/github-action@master
flag-name: run-${{ matrix.entry.ruby }}${{ matrix.entry.concurrency && '-' && matrix.entry.concurrency || 'none' }}
outputs:
coveralls-flag-name: run-${{ matrix.entry.ruby }}${{ matrix.entry.concurrency && '-' && matrix.entry.concurrency || 'none' }}

finish:
name: coveralls
needs: test
runs-on: ubuntu-latest
steps:
- name: Close Parallel Build
uses: coverallsapp/github-action@v2
with:
parallel-finished: true
carryforward: ${{ join(needs.test.outputs.coveralls-flag-name, ',') }}

0 comments on commit d39d888

Please sign in to comment.