enable sha1 for test

This commit is contained in:
Sun Yimin 2023-03-09 11:53:54 +08:00 committed by GitHub
parent 5d41aaa348
commit 236c37dab8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

@ -37,9 +37,13 @@ jobs:
- name: Test with Coverage
run: go test -coverpkg=./... -v -short -coverprofile=coverage1.txt -covermode=atomic ./...
env:
GODEBUG: x509sha1=1
- name: Test Generic
run: go test -coverpkg=./... -v -short -tags purego -coverprofile=coverage2.txt -covermode=atomic ./...
env:
GODEBUG: x509sha1=1
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3

View File

@ -47,4 +47,5 @@ jobs:
env:
DISABLE_SM3NI: 1
DISABLE_SM4NI: 1
GODEBUG: x509sha1=1
GOARCH: ${{ matrix.arch }}