From 41cc96c0fc0dc3f358dae0a83c8651ff46f4b164 Mon Sep 17 00:00:00 2001 From: Denis Bilenko Date: Fri, 6 Dec 2024 17:27:20 +0100 Subject: [PATCH] separate stages --- .github/workflows/push.yml | 2 +- Makefile | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 2198ddae..d05fdc85 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -103,7 +103,7 @@ jobs: run: make viewchanges - name: Run tests - run: make testchanges + run: make _testchanges #- name: Publish test coverage # uses: codecov/codecov-action@v4 diff --git a/Makefile b/Makefile index b154209d..99c1921d 100644 --- a/Makefile +++ b/Makefile @@ -26,7 +26,9 @@ viewchanges: affected-packages.txt affected-packages.txt: changecalc/changecalc changecalc/changecalc > affected-packages.txt || echo "./..." > affected-packages.txt -testchanges: affected-packages.txt +testchanges: affected-packages.txt _testchanges + +_testchanges: xargs gotestsum --format pkgname-and-test-fails --no-summary=skipped --raw-command go test -v -json -short -coverprofile=coverage.txt < affected-packages.txt changecalc/changecalc: changecalc/*.go