File tree 2 files changed +6
-5
lines changed
2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -16,11 +16,12 @@ jobs:
16
16
run : go install honnef.co/go/tools/cmd/staticcheck@be534f007836a777104a15f2456cd1fffd3ddee8 # v2020.2.2
17
17
- name : Check that go.mod is tidy
18
18
run : |
19
- cp go.mod go.mod.orig
20
- cp go.sum go.sum.orig
21
19
go mod tidy
22
- diff go.mod go.mod.orig
23
- diff go.sum go.sum.orig
20
+ if [[ -n $(git ls-files --other --exclude-standard --directory -- go.sum) ]]; then
21
+ echo "go.sum was added by go mod tidy"
22
+ exit 1
23
+ fi
24
+ git diff --exit-code -- go.sum go.mod
24
25
- name : gofmt
25
26
if : ${{ success() || failure() }} # run this step even if the previous one failed
26
27
run : |
Original file line number Diff line number Diff line change 32
32
if : ${{ matrix.os == 'ubuntu' }} # speed things up. Windows and OSX VMs are slow
33
33
run : go test -v -race ./...
34
34
- name : Upload coverage to Codecov
35
- uses : codecov/codecov-action@fcebab03f26c7530a22baa63f06b3e0515f0c7cd # v1.3 .1
35
+ uses : codecov/codecov-action@967e2b38a85a62bd61be5529ada27ebc109948c2 # v1.4 .1
36
36
with :
37
37
file : coverage.txt
38
38
env_vars : OS=${{ matrix.os }}, GO=${{ matrix.go }}
You can’t perform that action at this time.
0 commit comments