From 004c7008f4c64b16a4177d9d6630bc607d9f40e1 Mon Sep 17 00:00:00 2001 From: Michael Steinert Date: Wed, 29 Nov 2023 21:41:05 -0600 Subject: Another try at adding codecov --- .github/workflows/codecov.yaml | 4 ---- .github/workflows/test.yaml | 6 +++++- 2 files changed, 5 insertions(+), 5 deletions(-) delete mode 100644 .github/workflows/codecov.yaml (limited to '.github') diff --git a/.github/workflows/codecov.yaml b/.github/workflows/codecov.yaml deleted file mode 100644 index e420c7d..0000000 --- a/.github/workflows/codecov.yaml +++ /dev/null @@ -1,4 +0,0 @@ -- name: Upload coverage reports to Codecov - uses: codecov/codecov-action@v3 - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 23b3b64..1a296fa 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -19,4 +19,8 @@ jobs: - name: Checkout code uses: actions/checkout@v4 - name: Test - run: sudo go test -v ./... + run: sudo go test -v -cover -coverprofile=coverage.out ./... + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v3 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} -- cgit v1.2.3