From 63a1b592c362e6407f7b1d8dcccec44a063f6d36 Mon Sep 17 00:00:00 2001 From: Antoine Aflalo <197810+Belphemur@users.noreply.github.com> Date: Wed, 28 Aug 2024 13:55:33 -0400 Subject: [PATCH] ci: add test result to pipeline --- .github/workflows/test.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5e3ba30..36113ae 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -28,7 +28,15 @@ jobs: mv go-junit-report /usr/local/bin/ - name: Run tests - run: go test -v 2>&1 ./... -coverprofile=coverage.txt | go-junit-report -set-exit-code > junit.xml + run: go test -v 2>&1 ./... -coverprofile=coverage.txt | tee test-results.txt + - name: Analyse test results + run: go-junit-report < test-results.txt > report.xml + - name: Upload test result artifact + uses: actions/upload-artifact@v2 + with: + name: test-results + path: test-results.txt + retention-days: 7 - name: Upload results to Codecov uses: codecov/codecov-action@v4 with: