Skip to content

Commit b26d84c

Browse files
committed
👷 Send Coverage report to Qlty.sh
1 parent abd1e51 commit b26d84c

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

.github/workflows/coverage.yml

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ jobs:
5858
- name: Checkout
5959
uses: actions/checkout@v4
6060

61+
# Raw `bundle` will use the BUNDLE_GEMFILE set to matrix.gemfile (i.e. Appraisal.root)
62+
# We need to do this first to get appraisal installed.
63+
# NOTE: This does not use the main Gemfile at all.
6164
- name: Setup Ruby & RubyGems
6265
uses: ruby/setup-ruby@v1
6366
with:
@@ -71,11 +74,6 @@ jobs:
7174
if: ${{ github.event_name != 'pull_request' }}
7275
continue-on-error: ${{ matrix.experimental != 'false' }}
7376

74-
# Raw `bundle` will use the BUNDLE_GEMFILE set to matrix.gemfile (i.e. Appraisal.root)
75-
# We need to do this first to get appraisal installed.
76-
# NOTE: This does not use the main Gemfile at all.
77-
- name: Install Root Appraisal
78-
run: bundle
7977
- name: Appraisal for ${{ matrix.appraisal }}
8078
run: bundle exec appraisal ${{ matrix.appraisal }} bundle
8179
- name: Tests for ${{ matrix.ruby }}@current via ${{ matrix.exec_cmd }}
@@ -98,7 +96,7 @@ jobs:
9896
hide_complexity: true
9997
indicators: true
10098
output: both
101-
thresholds: '69 80'
99+
thresholds: '100 100'
102100
continue-on-error: ${{ matrix.experimental != 'false' }}
103101

104102
- name: Add Coverage PR Comment
@@ -109,13 +107,22 @@ jobs:
109107
path: code-coverage-results.md
110108
continue-on-error: ${{ matrix.experimental != 'false' }}
111109

112-
- name: Coveralls
110+
- name: Upload coverage to Coveralls
113111
uses: coverallsapp/github-action@master
114112
with:
115113
github-token: ${{ secrets.GITHUB_TOKEN }}
116114
continue-on-error: ${{ matrix.experimental != 'false' }}
117115

118-
- name: Upload results to Codecov
116+
- name: Upload coverage to QLTY
117+
uses: qltysh/qlty-action/coverage@main
118+
with:
119+
coverage-token: ${{secrets.QLTY_COVERAGE_TOKEN}}
120+
files: coverage/.resultset.json
121+
continue-on-error: ${{ matrix.experimental != 'false' }}
122+
123+
- name: Upload coverage to CodeCov
119124
uses: codecov/codecov-action@v5
120125
with:
126+
fail_ci_if_error: true # optional (default = false)
121127
token: ${{ secrets.CODECOV_TOKEN }}
128+
verbose: true # optional (default = false)

0 commit comments

Comments
 (0)