File tree 1 file changed +28
-3
lines changed
1 file changed +28
-3
lines changed Original file line number Diff line number Diff line change 1
1
name : Test
2
2
on : [push]
3
3
jobs :
4
- unit- test :
4
+ test :
5
5
runs-on : macOS-12
6
6
strategy :
7
7
fail-fast : false
17
17
with :
18
18
ruby-version : ${{ matrix.ruby-version }}
19
19
bundler-cache : true
20
- -
uses :
paambaati/[email protected]
20
+ - name : Install cc-test-reporter
21
+ run : |
22
+ curl -Lo cc-test-reporter https://codeclimate.com/downloads/test-reporter/test-reporter-latest-darwin-amd64
23
+ chmod +x cc-test-reporter
24
+ - run : ./cc-test-reporter before-build
21
25
env :
22
26
CC_TEST_REPORTER_ID : ${{ secrets.CC_TEST_REPORTER_ID }}
27
+ - run : bundle exec rake
28
+ - name : Format coverage
29
+ run : |
30
+ ./cc-test-reporter format-coverage --input-type simplecov --output 'codeclimate-${{ matrix.ruby-version }}.json' coverage/.resultset.json
31
+ - uses : actions/upload-artifact@v3
23
32
with :
24
- coverageCommand : bundle exec rake
33
+ name : coverages
34
+ path : codeclimate-${{ matrix.ruby-version }}.json
35
+ upload-coverage :
36
+ runs-on : ubuntu-20.04
37
+ needs : test
38
+ steps :
39
+ - uses : actions/download-artifact@v3
40
+ with :
41
+ name : coverages
42
+ - name : Install cc-test-reporter
43
+ run : |
44
+ curl -Lo cc-test-reporter https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64
45
+ chmod +x cc-test-reporter
46
+ - name : Upload coverage
47
+ run : ./cc-test-reporter sum-coverage --output - codeclimate.*.json | ./cc-test-reporter upload-coverage --debug --input -
48
+ env :
49
+ CC_TEST_REPORTER_ID : ${{ secrets.CC_TEST_REPORTER_ID }}
You can’t perform that action at this time.
0 commit comments