File tree Expand file tree Collapse file tree 4 files changed +16
-10
lines changed Expand file tree Collapse file tree 4 files changed +16
-10
lines changed Original file line number Diff line number Diff line change 19
19
- " _benchmark/**"
20
20
21
21
env :
22
- TEST_ARGS : -coverprofile coverage.out -covermode atomic
22
+ GO_TEST_ARGS : -coverprofile coverage.out -covermode atomic
23
23
TEST_GEM_DIR : ruby/testdata/example/
24
24
25
25
jobs :
@@ -61,19 +61,21 @@ jobs:
61
61
run : bundle exec rake
62
62
working-directory : ${{ env.TEST_GEM_DIR }}
63
63
64
+ # FIXME: workaround for gcov2lcov warning
65
+ - run : rm -rf vendor/
66
+
64
67
- name : Convert coverage to lcov
65
68
uses : jandelgado/gcov2lcov-action@v1
66
69
with :
67
70
infile : coverage.out
68
71
outfile : coverage.lcov
69
72
70
- # TODO: DO after
71
- # - name: Coveralls
72
- # uses: coverallsapp/github-action@master
73
- # with:
74
- # github-token: ${{ secrets.GITHUB_TOKEN }}
75
- # path-to-lcov: coverage.lcov
76
- # continue-on-error: true # NOTE: secrets cannot be obtained with forked repository PR
73
+ - name : Coveralls
74
+ uses : coverallsapp/github-action@master
75
+ with :
76
+ github-token : ${{ secrets.GITHUB_TOKEN }}
77
+ path-to-lcov : coverage.lcov
78
+ continue-on-error : true # NOTE: secrets cannot be obtained with forked repository PR
77
79
78
80
- name : Slack Notification (not success)
79
81
uses : act10ns/slack@v2
Original file line number Diff line number Diff line change @@ -58,6 +58,9 @@ Style/Documentation:
58
58
Exclude :
59
59
- " **/*_test.rb"
60
60
61
+ Style/FetchEnvVar :
62
+ Enabled : false
63
+
61
64
Style/NumericPredicate :
62
65
EnforcedStyle : comparison
63
66
Original file line number Diff line number Diff line change 6
6
> Don't use in production.
7
7
8
8
[ ![ build] ( https://github.com/sue445/go-gem-wrapper/actions/workflows/build.yml/badge.svg )] ( https://github.com/sue445/go-gem-wrapper/actions/workflows/build.yml )
9
+ [ ![ Coverage Status] ( https://coveralls.io/repos/github/sue445/go-gem-wrapper/badge.svg )] ( https://coveralls.io/github/sue445/go-gem-wrapper )
9
10
10
11
## Requirements
11
12
* Go
Original file line number Diff line number Diff line change 69
69
namespace :go do
70
70
desc "Run go test"
71
71
task :test do
72
- sh env_vars , "go test -mod=readonly -count=1 ${TEST_ARGS} ./..."
72
+ sh env_vars , "go test -mod=readonly -count=1 #{ ENV [ "GO_TEST_ARGS" ] } ./..."
73
73
end
74
74
75
75
desc "Run go test -race"
76
76
task :testrace do
77
- sh env_vars , "go test -mod=readonly -count=1 ${TEST_ARGS } -race ./..."
77
+ sh env_vars , "go test -mod=readonly -count=1 #{ ENV [ "GO_TEST_ARGS" ] } -race ./..."
78
78
end
79
79
80
80
desc "Run go fmt"
You can’t perform that action at this time.
0 commit comments