55 required : true
66 type : boolean
77
8+ # OIDC permissions for qlty
9+ permissions :
10+ contents : read
11+ id-token : write
12+
813env :
914 MAIN_RUBY_VER : 3.1
1015 MAIN_OS : ubuntu
16+
1117jobs :
1218 test :
1319 runs-on : ${{ matrix.os }}-latest
@@ -16,24 +22,27 @@ jobs:
1622 os : [ubuntu, macos, windows]
1723 ruby-version : [3.0, 3.1]
1824 steps :
19- - uses : actions/checkout@v2
20- with :
21- submodules : true
22- - name : Set up Ruby
23- uses : ruby/setup-ruby@v1
24- with :
25- ruby-version : ${{ matrix.ruby-version }}
26- bundler-cache : true
27- - name : Run CI Build with Rake
28- run : bundle exec rake ci
29- - name : Publish Code Coverage
30- 31- if : |
32- inputs.code_coverage &&
33- matrix.os == env.MAIN_OS &&
34- matrix.ruby-version == env.MAIN_RUBY_VER &&
35- github.event_name != 'pull_request'
36- env :
37- CC_TEST_REPORTER_ID : 031d4b3d619508ecf0f2d6ce8f2565d506d4cb24b6fa7ef913af274533021bee
38- with :
39- debug : false
25+ - uses : actions/checkout@v2
26+ with :
27+ submodules : true
28+
29+ - name : Set up Ruby
30+ uses : ruby/setup-ruby@v1
31+ with :
32+ ruby-version : ${{ matrix.ruby-version }}
33+ bundler-cache : true
34+
35+ - name : Run CI Build with Rake
36+ run : bundle exec rake ci
37+
38+ - name : Publish Code Coverage
39+ - uses : qltysh/qlty-action/coverage@v2
40+ if : |
41+ inputs.code_coverage &&
42+ matrix.os == env.MAIN_OS &&
43+ matrix.ruby-version == env.MAIN_RUBY_VER &&
44+ github.event_name != 'pull_request'
45+ with :
46+ oidc : true
47+ format : simplecov
48+ files : coverage/.resultset.json
0 commit comments