Skip to content

Commit

Permalink
Avoid running specs twice
Browse files Browse the repository at this point in the history
  • Loading branch information
tapan-sh committed Jan 17, 2025
1 parent 762f9d4 commit 1d39747
Showing 1 changed file with 22 additions and 8 deletions.
30 changes: 22 additions & 8 deletions .github/workflows/rspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,26 @@ jobs:
- name: Run tests
run: bundle exec rspec

- name: Code Coverage
uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
- name: 'Upload Coverage Report'
uses: actions/upload-artifact@v4
with:
coverageCommand: bundle exec rspec
coverageLocations: |
${{github.workspace}}/coverage/.resultset.json:simplecov
debug: true
name: coverage-report
path: ./coverage

coverage:
needs: [ test ]
name: coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Download Coverage Report
uses: actions/download-artifact@v4
with:
name: coverage-report
path: ./coverage
- uses: paambaati/[email protected]
env:
# Set CC_TEST_REPORTER_ID as secret of your repo
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
with:
debug: true

0 comments on commit 1d39747

Please sign in to comment.