mirror of https://github.com/databricks/cli.git
separate stages
This commit is contained in:
parent
bc6fa65a59
commit
41cc96c0fc
|
@ -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
|
||||||
|
|
4
Makefile
4
Makefile
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue