From 81ceb94cf5294f4fa111b747947caf430da6b70a Mon Sep 17 00:00:00 2001 From: Shivasurya Date: Sun, 28 Jul 2024 22:32:51 -0400 Subject: [PATCH] Add code coverage app (#82) --- .github/workflows/build.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index aa26f30..bc778a2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -32,4 +32,9 @@ jobs: - name: Test run: | cd sourcecode-parser - go test -v ./... \ No newline at end of file + go test -v ./... -coverprofile=coverage.out -covermode=atomic + + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v4.0.1 + with: + token: ${{ secrets.CODECOV_TOKEN }}