From 5be650b27aca57bd9747dba38e064979fb1e554d Mon Sep 17 00:00:00 2001 From: Hau Nguyen Date: Sat, 21 Aug 2021 01:02:43 +0700 Subject: [PATCH] chore: add codecov --- .github/workflows/go.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/go.yaml b/.github/workflows/go.yaml index d833c3a..ab30481 100644 --- a/.github/workflows/go.yaml +++ b/.github/workflows/go.yaml @@ -17,7 +17,10 @@ jobs: - uses: actions/setup-go@v2 with: go-version: "~1.17" - - run: go test -race ./... + - run: go test -race -coverprofile=coverage.out ./... + - uses: codecov/codecov-action@v2 + with: + files: coverage.out build: name: Build runs-on: ${{ matrix.os }}