Skip to content

Commit

Permalink
Collect code coverage just once in linux and run tests in all other e…
Browse files Browse the repository at this point in the history
…nvs.
  • Loading branch information
rogerluan committed Jun 11, 2024
1 parent 10a2bc9 commit 2ba2bda
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/code-coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Generate & Upload Code Coverage
on:
push:
branches:
- main
jobs:
test:
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: head
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- uses: paambaati/[email protected]
with:
coverageCommand: bundle exec rake
debug: true
6 changes: 2 additions & 4 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,5 @@ jobs:
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- uses: paambaati/[email protected]
with:
coverageCommand: bundle exec rake
debug: true
- name: Run tests
run: bundle exec rake

0 comments on commit 2ba2bda

Please sign in to comment.