From befc4b0fabf9e1944ac8a86d7f3d35194e7b3c41 Mon Sep 17 00:00:00 2001 From: Antoine Aflalo <197810+Belphemur@users.noreply.github.com> Date: Tue, 27 Aug 2024 10:29:45 -0400 Subject: [PATCH] test: add codecov --- .github/workflows/test.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6e918ce..695b36a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -21,4 +21,8 @@ jobs: run: go mod tidy - name: Run tests - run: go test ./... -v \ No newline at end of file + run: go test -coverprofile=coverage.txt + - name: Upload results to Codecov + uses: codecov/codecov-action@v4 + with: + token: ${{ secrets.CODECOV_TOKEN }} \ No newline at end of file