code test coverage

This commit is contained in:
Sun Yimin 2022-07-11 15:42:11 +08:00 committed by GitHub
parent 8bcbb9c77a
commit 1e4171b1e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,10 +36,13 @@ jobs:
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/go.sum') }} key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/go.sum') }}
- name: Test with Coverage - 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 - name: Upload coverage to Codecov
uses: codecov/codecov-action@v1 uses: codecov/codecov-action@v1
- name: Test Generic - 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