From 385ec80db99731542092b586501b1808b93f8619 Mon Sep 17 00:00:00 2001 From: zerosnake0 Date: Tue, 24 Nov 2020 22:42:25 +0800 Subject: [PATCH] update ci --- .github/workflows/test.yml | 2 +- .gitignore | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7a81f8c..95187e2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -27,7 +27,7 @@ jobs: uses: actions/checkout@v1 - name: Test - run: go test -tags debug -race ./... + run: go test -tags debug -race -coverprofile=coverage.txt -covermode=atomic ./... - name: CodeCov run: bash <(curl -s https://codecov.io/bash) diff --git a/.gitignore b/.gitignore index e5448be..a12deb7 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,5 @@ *.out *.png *.exe + +coverage.txt