From 9e3b6225d7289e49e07d52edb700276a767d1d7c Mon Sep 17 00:00:00 2001 From: Will Krause Date: Tue, 5 Dec 2023 16:36:21 -0500 Subject: [PATCH] add codecov report support --- .github/workflows/codecov.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/codecov.yml diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml new file mode 100644 index 0000000..035d50f --- /dev/null +++ b/.github/workflows/codecov.yml @@ -0,0 +1,19 @@ +name: Test and coverage + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Run coverage + run: go test ./... -race -coverprofile=coverage.out -covermode=atomic + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v3 + if: success() || failure() + with: + token: ${{ secrets.CODECOV_TOKEN }} + fail_ci_if_error: false + files: ./coverage.out + move_coverage_to_trash: true