Skip to content

Commit

Permalink
chore: reduce codecov volume
Browse files Browse the repository at this point in the history
Signed-off-by: Todd Baert <[email protected]>
  • Loading branch information
toddbaert committed Sep 13, 2023
1 parent c3c1222 commit 8322fb1
Showing 1 changed file with 24 additions and 7 deletions.
31 changes: 24 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,7 @@ jobs:
- run: bundle install
- name: RSpec
run: bundle exec rspec
- name: Upload coverage to Codecov
uses: codecov/codecov-action@8e29a53ea65f98e97f4ad4594d355d8e8fd5bcfe
with:
fail_ci_if_error: true
verbose: true
file: coverage/coverage.xml

rubocop:
name: Rubocop
runs-on: ubuntu-latest
Expand All @@ -49,12 +44,34 @@ jobs:
- run: bundle install
- name: Rubocop
run: bundle exec rubocop --color

coverage:
runs-on: ubuntu-latest
name: codecov
env:
BUNDLE_GEMFILE: Gemfile

steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2
- run: bundle install
- name: RSpec
run: bundle exec rspec
- name: Upload coverage to Codecov
uses: codecov/codecov-action@8e29a53ea65f98e97f4ad4594d355d8e8fd5bcfe
with:
fail_ci_if_error: true
verbose: true
file: coverage/coverage.xml

# check the status of other jobs, so we can have a single job dependency for branch protection
# https://github.com/community/community/discussions/4324#discussioncomment-3477871
status:
name: CI Status
runs-on: ubuntu-latest
needs: [rspec, rubocop]
needs: [rspec, rubocop, coverage]
if: always()
steps:
- name: Successful CI
Expand Down

0 comments on commit 8322fb1

Please sign in to comment.