From eae5463eecfc8f2799dd20ad704f4ddf4cdc6514 Mon Sep 17 00:00:00 2001 From: Eden Zimbelman Date: Tue, 3 Sep 2024 15:12:40 -0700 Subject: [PATCH] ci: test coverage as a metric to consider with code changes (#128) --- .github/workflows/tests.yml | 6 +++++- CHANGELOG.md | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d4bcc5c..90a86e9 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -23,7 +23,11 @@ jobs: - name: Build binary run: nix develop -c make build - name: Run tests - run: nix develop -c go test -v ./... + run: nix develop -c go test -v ./... -coverprofile=coverage.txt + - name: Upload coverage results + uses: codecov/codecov-action@v4 + with: + token: ${{ secrets.CODECOV_TOKEN }} measurement: name: Monitor energy usage needs: checkup diff --git a/CHANGELOG.md b/CHANGELOG.md index f2134f6..70d3a45 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,7 @@ to [Semantic Versioning][semver]. - Set the `go` version to a fixed `1.22.6` for the toolchain - Update token authentication to use the latest Cognito SDK +- Test coverage as a metric to at least consider with changes ## [1.1.0] - 2024-08-03