@@ -10,12 +10,10 @@ permissions:
1010 contents : read
1111
1212env :
13- CC_TEST_REPORTER_ID : " ac477089fe20ab4fc7e0d304cab75f72d73d58a7596d366935d18fcc7d51f8f9"
14-
1513 # `github.ref` points to the *merge commit* when running tests on a pull request, which will be a commit
1614 # that doesn't exists in our code base. Since this workflow triggers from a PR, we use the HEAD SHA instead.
1715 #
18- # NOTE: These are both used by Code Climate (cc-test-reporter).
16+ # NOTE: These both used to be used by Code Climate (cc-test-reporter), superseded by qlty.sh
1917 GIT_COMMIT_SHA : ${{ github.event.pull_request.head.sha }}
2018 GIT_BRANCH : ${{ github.head_ref }}
2119
6159 rubygems : latest
6260 ruby-version : " ruby"
6361 bundler-cache : true
64- - name : " Download cc-test-reporter from codeclimate.com"
65- run : |
66- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
67- chmod +x ./cc-test-reporter
68- - name : " Report to Code Climate that we will send a coverage report."
69- run : ./cc-test-reporter before-build
7062 - name : Run tests
7163 run : bundle exec rspec
7264 env :
@@ -78,11 +70,25 @@ jobs:
7870 name : coverage-results
7971 path : coverage
8072 retention-days : 1
81- - name : Upload code coverage to Code Climate
82- run : |
83- ./cc-test-reporter after-build \
84- --coverage-input-type simplecov \
85- ./coverage/.resultset.json
73+
74+ coverage-upload :
75+ permissions :
76+ id-token : write # Required for OIDC
77+ needs : test
78+ runs-on : ubuntu-latest
79+ steps :
80+ - uses : actions/checkout@v4
81+ - name : Download coverage results
82+ uses : actions/download-artifact@v4
83+ with :
84+ name : coverage-results
85+ path : coverage
86+ - name : Upload code coverage to qlty.sh
87+ uses : qltysh/qlty-action/coverage@v2
88+ with :
89+ oidc : true
90+ format : simplecov
91+ files : coverage/.resultset.json
8692
8793 coverage-check :
8894 permissions :
0 commit comments