File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,20 +26,14 @@ jobs:
2626 - name : Build
2727 run : go build -v ./...
2828
29- - name : Test
30- env :
31- PILOT_LOG_LEVEL : error
32- run : |
33- go test -short -parallel 2 -count=1 -timeout 10m ./tests/
34- timeout-minutes : 15
35-
36- - name : Generate coverage
29+ - name : Test with coverage
3730 env :
3831 PILOT_LOG_LEVEL : error
3932 run : |
4033 mkdir -p coverage
41- go test -short -parallel 2 -count=1 -coverprofile=coverage/coverage.out -covermode=atomic -timeout 10m ./tests/
34+ go test -short -parallel 4 -count=1 -coverprofile=coverage/coverage.out -covermode=atomic -timeout 10m ./tests/
4235 go tool cover -func=coverage/coverage.out | tail -1 | awk '{print "Total coverage: " $3}'
36+ timeout-minutes : 15
4337
4438 - name : Upload coverage
4539 uses : actions/upload-artifact@v4
@@ -130,7 +124,8 @@ jobs:
130124 - name : Check for test failures
131125 if : always()
132126 run : |
133- if grep -q "Failed: [^0]" tests/integration/results/*.txt 2>/dev/null; then
127+ # Check if any test has non-zero failures
128+ if grep -E "Failed: [1-9][0-9]*" tests/integration/results/*.txt 2>/dev/null; then
134129 echo "⚠️ Some tests failed"
135130 exit 1
136131 fi
You can’t perform that action at this time.
0 commit comments