Skip to content

Commit

Permalink
Merge pull request #74 from puppetlabs/CAT-1618-add_in_code_coverage
Browse files Browse the repository at this point in the history
(CAT-1618) - Fix issue with code coverage in nightlies
  • Loading branch information
david22swan authored Jan 16, 2024
2 parents b9bdc3d + ef8fef8 commit d79af84
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/gem_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,13 @@ jobs:
bundle exec rake ${{ inputs.rake_task }}
- name: Upload coverage reports to Codecov
# Only upload coverage reports once per CI trigger, as multiple concurrent uploads can cause issues
# Only upload coverage reports once per CI.yml trigger, as multiple concurrent uploads can cause issues
# so limit this step to only run once, with a conditional check for the latest Ruby version, on Ubuntu-latest
if: inputs.runs_on == 'ubuntu-latest' && inputs.ruby_version == '3.2'
# the check on inputs.rake_task helps to ensure this is only run when coverage rake_task has been executed
if: |
contains(inputs.rake_task, 'coverage') &&
inputs.runs_on == 'ubuntu-latest' &&
inputs.ruby_version == '3.2'
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand Down

0 comments on commit d79af84

Please sign in to comment.