Skip to content

Commit d499f78

Browse files
committed
Fix rake go:test and go:testrace
1 parent 0dbebd4 commit d499f78

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ on:
1919
- "_benchmark/**"
2020

2121
env:
22-
TEST_ARGS: -coverprofile coverage.out -covermode atomic
22+
GO_TEST_ARGS: -coverprofile coverage.out -covermode atomic
2323
TEST_GEM_DIR: ruby/testdata/example/
2424

2525
jobs:

.rubocop.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ Style/Documentation:
5858
Exclude:
5959
- "**/*_test.rb"
6060

61+
Style/FetchEnvVar:
62+
Enabled: false
63+
6164
Style/NumericPredicate:
6265
EnforcedStyle: comparison
6366

Rakefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,12 @@ end
6969
namespace :go do
7070
desc "Run go test"
7171
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"]} ./..."
7373
end
7474

7575
desc "Run go test -race"
7676
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 ./..."
7878
end
7979

8080
desc "Run go fmt"

0 commit comments

Comments
 (0)