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