File tree Expand file tree Collapse file tree 1 file changed +20
-5
lines changed Expand file tree Collapse file tree 1 file changed +20
-5
lines changed Original file line number Diff line number Diff line change 23
23
runs-on : ${{ matrix.os }}
24
24
env :
25
25
GO111MODULE : ' on'
26
- COVER_GO_VERSION : ' 1.24'
26
+ LATEST_GO_STABLE_VERSION : ' 1.24'
27
27
GOARCH : ${{ matrix.arch }}
28
28
name : go ${{ matrix.go }} on ${{ matrix.arch }} at branch ${{ github.ref_name }}
29
29
steps :
@@ -34,16 +34,31 @@ jobs:
34
34
- shell : bash
35
35
run : cd codec; go get github.com/google/go-cmp/cmp
36
36
- name : Run tests
37
+ if : matrix.go != env.LATEST_GO_STABLE_VERSION
37
38
shell : bash
38
39
run : |
39
40
cd codec
40
- # go mod edit -droprequire github.com/ugorji/go
41
- t=( "" "safe" "notfastpath" "notmono" )
41
+ go mod edit -droprequire github.com/ugorji/go
42
+ t=( "" "codec. safe" "codec. notfastpath" "codec. notmono" )
42
43
for i in "${t[@]}"; do
43
- go test "-tags=alltests codec.nobench ${i}" "-run=Suite" "-coverprofile=coverage.${{ matrix.go }}.${{ matrix.arch }}.${i}.txt"
44
+ go test "-tags=alltests codec.nobench ${i}" "-run=Suite"
45
+ done
46
+ - name : Run tests
47
+ if : matrix.go == env.LATEST_GO_STABLE_VERSION
48
+ shell : bash
49
+ run : |
50
+ cd codec
51
+ go mod edit -droprequire github.com/ugorji/go
52
+ tt=( "" "codec.safe" "codec.notfastpath" "codec.safe codec.notfastpath" \
53
+ "codec.notmono" "codec.notmono codec.safe" \
54
+ "codec.notmono codec.notfastpath" "codec.notmono codec.safe codec.notfastpath" )
55
+ for i in "${t[@]}"; do
56
+ ii="${i// /-}"
57
+ ii="${ii//codec./}"
58
+ go test "-tags=alltests codec.nobench ${i}" "-run=Suite" "-coverprofile=coverage.${{ matrix.go }}.${{ matrix.arch }}.${ii}.txt"
44
59
done
45
60
- uses : codecov/codecov-action@v5
46
- if : matrix.go == env.COVER_GO_VERSION
61
+ if : matrix.go == env.LATEST_GO_STABLE_VERSION
47
62
with :
48
63
directory : ./codec
49
64
You can’t perform that action at this time.
0 commit comments