@@ -10,16 +10,16 @@ jobs:
10
10
fail-fast : false
11
11
matrix :
12
12
os : [ "ubuntu", "windows", "macos" ]
13
- go : [ "1.17 .x", "1.18 .x" ]
13
+ go : [ "1.18 .x", "1.19 .x" ]
14
14
env :
15
15
COVERAGES : " "
16
16
runs-on : ${{ format('{0}-latest', matrix.os) }}
17
17
name : ${{ matrix.os }} (go ${{ matrix.go }})
18
18
steps :
19
- - uses : actions/checkout@v2
19
+ - uses : actions/checkout@v3
20
20
with :
21
21
submodules : recursive
22
- - uses : actions/setup-go@v2
22
+ - uses : actions/setup-go@v3
23
23
with :
24
24
go-version : ${{ matrix.go }}
25
25
- name : Go information
43
43
# Use -coverpkg=./..., so that we include cross-package coverage.
44
44
# If package ./A imports ./B, and ./A's tests also cover ./B,
45
45
# this means ./B's coverage will be significantly higher than 0%.
46
- run : go test -v -coverprofile=module-coverage.txt -coverpkg=./... ./...
46
+ run : go test -v -shuffle=on - coverprofile=module-coverage.txt -coverpkg=./... ./...
47
47
- name : Run tests (32 bit)
48
48
if : ${{ matrix.os != 'macos' }} # can't run 32 bit tests on OSX.
49
49
52
52
with :
53
53
run : |
54
54
export "PATH=${{ env.PATH_386 }}:$PATH"
55
- go test -v ./...
55
+ go test -v -shuffle=on ./...
56
56
- name : Run tests with race detector
57
57
if : ${{ matrix.os == 'ubuntu' }} # speed things up. Windows and OSX VMs are slow
58
58
62
62
shell : bash
63
63
run : echo "COVERAGES=$(find . -type f -name 'module-coverage.txt' | tr -s '\n' ',' | sed 's/,$//')" >> $GITHUB_ENV
64
64
- name : Upload coverage to Codecov
65
- uses : codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b # v2 .1.0
65
+ uses : codecov/codecov-action@81cd2dc8148241f03f5839d295e000b8f761e378 # v3 .1.0
66
66
with :
67
67
files : ' ${{ env.COVERAGES }}'
68
68
env_vars : OS=${{ matrix.os }}, GO=${{ matrix.go }}
0 commit comments