separate stages

This commit is contained in:
Denis Bilenko 2024-12-06 17:27:20 +01:00
parent bc6fa65a59
commit 41cc96c0fc
2 changed files with 4 additions and 2 deletions

View File

@ -103,7 +103,7 @@ jobs:
run: make viewchanges run: make viewchanges
- name: Run tests - name: Run tests
run: make testchanges run: make _testchanges
#- name: Publish test coverage #- name: Publish test coverage
# uses: codecov/codecov-action@v4 # uses: codecov/codecov-action@v4

View File

@ -26,7 +26,9 @@ viewchanges: affected-packages.txt
affected-packages.txt: changecalc/changecalc affected-packages.txt: changecalc/changecalc
changecalc/changecalc > affected-packages.txt || echo "./..." > affected-packages.txt 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 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 changecalc/changecalc: changecalc/*.go