Skip to content

Commit a51f2eb

Browse files
committed
codec: update github actions to run full gamut of tests on go1.24
1 parent 0311bdb commit a51f2eb

File tree

1 file changed

+20
-5
lines changed

1 file changed

+20
-5
lines changed

.github/workflows/test.yml

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
runs-on: ${{ matrix.os }}
2424
env:
2525
GO111MODULE: 'on'
26-
COVER_GO_VERSION: '1.24'
26+
LATEST_GO_STABLE_VERSION: '1.24'
2727
GOARCH: ${{ matrix.arch }}
2828
name: go ${{ matrix.go }} on ${{ matrix.arch }} at branch ${{ github.ref_name }}
2929
steps:
@@ -34,16 +34,31 @@ jobs:
3434
- shell: bash
3535
run: cd codec; go get github.com/google/go-cmp/cmp
3636
- name: Run tests
37+
if: matrix.go != env.LATEST_GO_STABLE_VERSION
3738
shell: bash
3839
run: |
3940
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" )
4243
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"
4459
done
4560
- uses: codecov/codecov-action@v5
46-
if: matrix.go == env.COVER_GO_VERSION
61+
if: matrix.go == env.LATEST_GO_STABLE_VERSION
4762
with:
4863
directory: ./codec
4964

0 commit comments

Comments
 (0)