From d433e416fa71b1b7736a1c84b5639a57d8a2f2ba Mon Sep 17 00:00:00 2001 From: Sun Yimin Date: Thu, 27 Feb 2025 13:08:09 +0800 Subject: [PATCH] ci: enable code coverage --- .github/workflows/ci.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d63193d..916c855 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,19 +23,19 @@ jobs: go-version: ${{ matrix.goVer }} - name: Test with Coverage - if: ${{ matrix.goVer == '1.18' }} + if: ${{ matrix.goVer == '1.23' }} 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.18' }} + if: ${{ matrix.goVer == '1.23' }} 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.18' }} + if: ${{ matrix.goVer == '1.23' }} 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.18' }} + if: ${{ matrix.goVer != '1.23' }} run: go test -short ./... env: GODEBUG: x509sha1=1 - name: Test Generic only - if: ${{ matrix.goVer != '1.18' && matrix.goVer != '1.23' }} + if: ${{ matrix.goVer != '1.23' }} run: go test -short -tags purego ./... env: GODEBUG: x509sha1=1 - name: Test Plugin only - if: ${{ matrix.goVer != '1.18' }} + if: ${{ matrix.goVer == '1.23' }} run: go test -short -tags plugin ./... env: GODEBUG: x509sha1=1