From 8587eaad307e8040acac2f79394987b19f93bce9 Mon Sep 17 00:00:00 2001 From: Alexei Ledenev Date: Sun, 22 Oct 2023 11:06:59 +0300 Subject: [PATCH] keep test artifacts --- .github/workflows/build.yaml | 12 ++++++++++++ makefile | 1 - 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 9451032..501587d 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -37,6 +37,18 @@ jobs: make lint make test-json + - name: upload test results + uses: actions/upload-artifact@v3 + if: ${{ always() }} + with: + name: test-reports + if-no-files-found: ignore + path: | + test-report.out + coverage.out + golangci-lint.out + + docker-build: runs-on: ubuntu-latest diff --git a/makefile b/makefile index 5ea2b88..14add89 100644 --- a/makefile +++ b/makefile @@ -66,7 +66,6 @@ test: ; $(info $(M) running test ...) @ ## run tests with coverage test-json: ; $(info $(M) running test output JSON ...) @ ## run tests with JSON report and coverage $Q $(GOTEST) -v -cover ./... -coverprofile=coverage.out -json > test-report.out - $Q $(GOTOOL) cover -func=coverage.out precommit: lint test ; $(info $(M) test and lint ...) @ ## release cycle: test > lint