From 990c6e11d1541e9f6c155915f3b957b03509b9b7 Mon Sep 17 00:00:00 2001 From: Antoine Aflalo <197810+Belphemur@users.noreply.github.com> Date: Tue, 27 Aug 2024 10:35:04 -0400 Subject: [PATCH] ci: add junit report --- .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 c0ae884..eb3da8f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -19,10 +19,14 @@ jobs: - name: Install dependencies run: go mod tidy + + - name: Install Junit reporter + run: go get -u github.com/jstemmer/go-junit-report/v2 - name: Run tests - run: go test ./... -v -coverprofile=coverage.txt + run: go test -v 2>&1 ./... -coverprofile=coverage.txt | go-junit-report -set-exit-code > junit.xml - name: Upload results to Codecov + if: ${{ !cancelled() }} uses: codecov/codecov-action@v4 with: token: ${{ secrets.CODECOV_TOKEN }} \ No newline at end of file