From 9c158d2670420c12b2de878e3ea0d8e45d4ac611 Mon Sep 17 00:00:00 2001 From: Piotr Piotrowski Date: Mon, 29 Apr 2024 16:57:56 +0200 Subject: [PATCH] Add coverage report Signed-off-by: Piotr Piotrowski --- .github/workflows/ci.yaml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 4e01af948..28c73d36f 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -53,8 +53,12 @@ jobs: - name: Test and coverage run: | go test -modfile=go_test.mod -v -run=TestNoRace -p=1 ./... --failfast -vet=off - if [ "${{ matrix.go }}" = "1.21" ]; then + if [ "${{ matrix.go }}" = "1.22" ]; then ./scripts/cov.sh CI - elif [ "${{ matrix.go }}" = "1.22" ]; then + elif [ "${{ matrix.go }}" = "1.21" ]; then go test -modfile=go_test.mod -race -v -p=1 ./... --failfast -vet=off -tags=internal_testing - fi \ No newline at end of file + fi + - name: Coveralls + uses: coverallsapp/github-action@v2 + with: + file: acc.out \ No newline at end of file