@@ -19,6 +19,7 @@ permissions:
1919env :
2020 GOTOOLCHAIN : local
2121 GOEXPERIMENT : cgocheck2
22+ GOTESTSUM_FORMAT : pkgname-and-test-fails
2223jobs :
2324 tests-linux :
2425 name : Tests (Linux, PHP ${{ matrix.php-versions }})
@@ -64,13 +65,13 @@ jobs:
6465 - name : Build testcli binary
6566 working-directory : internal/testcli/
6667 run : go build
67- - name : Compile library tests
68- run : go test -race -v -x -c
68+ - name : Install gotestsum
69+ run : go install gotest.tools/gotestsum@latest
6970 - name : Run library tests
70- run : ./frankenphp.test -test.v
71+ run : gotestsum -- -race ./...
7172 - name : Run Caddy module tests
7273 working-directory : caddy/
73- run : go test -race -v ./...
74+ run : gotestsum -- -race ./...
7475 - name : Run Fuzzing Tests
7576 working-directory : caddy/
7677 run : go test -fuzz FuzzRequest -fuzztime 20s
@@ -136,9 +137,11 @@ jobs:
136137 run : |
137138 echo "CGO_CFLAGS=$(php-config --includes)" >> "${GITHUB_ENV}"
138139 echo "CGO_LDFLAGS=$(php-config --ldflags) $(php-config --libs)" >> "${GITHUB_ENV}"
140+ - name : Install gotestsum
141+ run : go install gotest.tools/gotestsum@latest
139142 - name : Run integration tests
140143 working-directory : internal/extgen/
141- run : go test -tags integration -v -timeout 30m
144+ run : gotestsum -- -tags integration -timeout 30m
142145 tests-mac :
143146 name : Tests (macOS, PHP 8.5)
144147 runs-on : macos-latest
@@ -164,7 +167,9 @@ jobs:
164167 env :
165168 phpts : ts
166169 debug : true
167- - name : Set Set CGO flags
170+ - name : Install gotestsum
171+ run : go install gotest.tools/gotestsum@latest
172+ - name : Set CGO flags
168173 run : |
169174 {
170175 echo "CGO_CFLAGS=-I/opt/homebrew/include/ $(php-config --includes)"
@@ -173,7 +178,7 @@ jobs:
173178 - name : Build
174179 run : go build -tags nowatcher
175180 - name : Run library tests
176- run : go test -tags nowatcher -race -v ./...
181+ run : gotestsum -- -tags nowatcher -race ./...
177182 - name : Run Caddy module tests
178183 working-directory : caddy/
179- run : go test -race -v ./...
184+ run : gotestsum -- -race ./...
0 commit comments