ci: test coverage for golang 1.24

This commit is contained in:
Sun Yimin 2025-05-21 13:49:11 +08:00 committed by GitHub
parent 64dbdf27c8
commit 44b9419aa7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -23,19 +23,19 @@ jobs:
go-version: ${{ matrix.goVer }}
- name: Test with Coverage
if: ${{ matrix.goVer == '1.23' }}
if: ${{ matrix.goVer == '1.24' }}
run: go test -coverpkg=./... -v -short -race -coverprofile=coverage1.txt -covermode=atomic ./...
env:
GODEBUG: x509sha1=1
- name: Test Generic with Coverage
if: ${{ matrix.goVer == '1.23' }}
if: ${{ matrix.goVer == '1.24' }}
run: go test -coverpkg=./... -v -short -tags purego -coverprofile=coverage2.txt -covermode=atomic ./...
env:
GODEBUG: x509sha1=1
- name: Upload coverage to Codecov
if: ${{ matrix.goVer == '1.23' }}
if: ${{ matrix.goVer == '1.24' }}
uses: codecov/codecov-action@v5
with:
files: ./coverage1.txt,./coverage2.txt
@ -48,19 +48,19 @@ jobs:
FORCE_SM4BLOCK_AESNI: 1
- name: Test only
if: ${{ matrix.goVer != '1.23' }}
if: ${{ matrix.goVer != '1.24' }}
run: go test -short ./...
env:
GODEBUG: x509sha1=1
- name: Test Generic only
if: ${{ matrix.goVer != '1.23' }}
if: ${{ matrix.goVer != '1.24' }}
run: go test -short -tags purego ./...
env:
GODEBUG: x509sha1=1
- name: Test Plugin only
if: ${{ matrix.goVer == '1.23' }}
if: ${{ matrix.goVer == '1.24' }}
run: go test -short -tags plugin ./...
env:
GODEBUG: x509sha1=1