From dc6485cf6b2dec7ff7e8f9d7315f94d8106c43d1 Mon Sep 17 00:00:00 2001 From: Rob Watson Date: Wed, 16 Apr 2025 15:03:35 +0200 Subject: [PATCH] test: configure codecov --- .github/workflows/ci-build.yml | 4 ++++ mise/config.toml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index 24bee67..7abff17 100644 --- a/.github/workflows/ci-build.yml +++ b/.github/workflows/ci-build.yml @@ -54,6 +54,10 @@ jobs: env: DOCKER_API_VERSION: "1.45" run: mise run test_integration_ci + - name: upload coverage report + uses: codecov/codecov-action@v5 + with: + token: ${{ secrets.CODECOV_TOKEN }} release: needs: - lint diff --git a/mise/config.toml b/mise/config.toml index 6d9647f..e36aad6 100644 --- a/mise/config.toml +++ b/mise/config.toml @@ -16,7 +16,7 @@ alias = "ti" [tasks.test_ci] description = "Run tests in CI" dir = "{{cwd}}" -run = "go test -v -count 1 -race ./..." +run = "go test -v -count 1 -race -coverprofile=coverage.txt ./..." [tasks.test_integration_ci] description = "Run integration tests in CI"