mirror of
https://github.com/emmansun/gmsm.git
synced 2025-04-26 20:26:19 +08:00
code test coverage
This commit is contained in:
parent
8bcbb9c77a
commit
1e4171b1e8
7
.github/workflows/ci.yml
vendored
7
.github/workflows/ci.yml
vendored
@ -36,10 +36,13 @@ jobs:
|
||||
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/go.sum') }}
|
||||
|
||||
- name: Test with Coverage
|
||||
run: go test -v -short -coverprofile=coverage.txt -covermode=atomic ./...
|
||||
run: go test -v -short -race -coverprofile=coverage.txt -covermode=atomic ./...
|
||||
|
||||
- name: Upload coverage to Codecov
|
||||
uses: codecov/codecov-action@v1
|
||||
|
||||
- name: Test Generic
|
||||
run: go test -v -short -tags generic ./...
|
||||
run: go test -v -short -tags generic -race -coverprofile=coverage.txt -covermode=atomic ./...
|
||||
|
||||
- name: Upload coverage to Codecov
|
||||
uses: codecov/codecov-action@v1
|
||||
|
Loading…
x
Reference in New Issue
Block a user