diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 277e830..a5c4a59 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -13,6 +13,10 @@ jobs: env: { SKIP_LINT: true } - uses: golangci/golangci-lint-action@v3 with: { version: "latest" } + - run: make cov + - uses: codecov/codecov-action@v3 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} test: strategy: matrix: diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c57100a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +coverage.txt diff --git a/Makefile b/Makefile index 85d6ef4..a821883 100644 --- a/Makefile +++ b/Makefile @@ -12,3 +12,6 @@ endif test: go test -v ./... + +cov: + go test -race -coverprofile=coverage.txt -covermode=atomic ./...