Skip to content

Commit ae86cb5

Browse files
authored
Shuffle go tests (#14)
1 parent bcaf693 commit ae86cb5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ jobs:
122122
with:
123123
go-version-file: 'go.mod'
124124

125-
- run: go test -count=1 ./...
125+
- run: go test -count=1 -shuffle=on ./...
126126

127127
wait-for-all-tests:
128128
needs:

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ WORKDIR /tmp-app
1919
RUN go mod download && rm -rf /tmp-app
2020

2121
WORKDIR /app
22-
CMD ["go", "test", "./..."]
22+
CMD ["go", "test", "-shuffle=on", "./..."]

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ build-latest: build-php-8-composer-latest
2626
test-latest: test-php-8-composer-latest
2727

2828
test-local:
29-
go test -count=1 ./...
29+
go test -count=1 -shuffle=on ./...
3030

3131
update-scripts:
3232
UPDATE_SCRIPTS=1 $(MAKE) test-local

0 commit comments

Comments
 (0)