ci: always generate and upload test results

This commit is contained in:
Antoine Aflalo
2024-09-09 14:03:18 -04:00
parent 57f5282032
commit da508fcb3f

View File

@@ -32,8 +32,10 @@ jobs:
set -o pipefail
go test -v 2>&1 ./... -coverprofile=coverage.txt | tee test-results.txt
- name: Analyse test results
if: ${{ !cancelled() }}
run: go-junit-report < test-results.txt > junit.xml
- name: Upload test result artifact
if: ${{ !cancelled() }}
uses: actions/upload-artifact@v4
with:
name: test-results