ci: upload test report to CI

To make it possible, tweak a bit the Makefile

Part-of: https://gitlab.postmarketos.org/postmarketOS/postmarketos-mkinitfs/-/merge_requests/63
This commit is contained in:
Pablo Correa Gómez
2025-06-06 16:38:02 +02:00
parent be6a6da417
commit 95edf678f4
2 changed files with 9 additions and 4 deletions

View File

@@ -20,13 +20,17 @@ workflow:
build:
stage: build
variables:
GOTEST: "gotestsum --junitfile report.xml --format testname -- ./..."
before_script:
- apk -q add go staticcheck make scdoc
- apk -q add go gotestsum staticcheck make scdoc
script:
- make test
- make
artifacts:
expire_in: 1 week
reports:
junit: report.xml
vendor:
stage: vendor