From 0c1449de5ee590b2cb6f9a5863e9819dd70ba7f1 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Wed, 22 Sep 2021 19:50:03 +0900 Subject: [PATCH] .github/worksflows: Add -shuffle Closes #1817 --- .github/workflows/test.yml | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2867a0a05..3cf70e232 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -79,18 +79,32 @@ jobs: env GOOS=windows GOARCH=amd64 go build -tags=example -v ./... env GOOS=windows GOARCH=386 go build -tags=example -v ./... - - name: go test - if: ${{ startsWith(matrix.os, 'ubuntu-') }} # TODO: Add more test environments (#1305) + - name: go test (Go 1.16 or older) + # TODO: Add more test environments (#1305) + if: ${{ startsWith(matrix.os, 'ubuntu-') && (startsWith(matrix.go, '1.15.') || startsWith(matrix.go, '1.16.')) }} run: | go test -tags=example -v ./... - - name: go test (Wasm) + - name: go test + # TODO: Add more test environments (#1305) + if: ${{ startsWith(matrix.os, 'ubuntu-') && !startsWith(matrix.go, '1.15.') && !startsWith(matrix.go, '1.16.') }} + run: | + go test -tags=example -shuffle -v ./... + + - name: go test (Wasm, Go 1.16 or older) # TODO: Investigate times out on Windows. (#1313) - if: ${{ !startsWith(matrix.os, 'windows-') }} + if: ${{ !startsWith(matrix.os, 'windows-') && (startsWith(matrix.go, '1.15.') || startsWith(matrix.go, '1.16.')) }} run: | env GOOS=js GOARCH=wasm go test -tags=example -v ./... env GOOS=js GOARCH=wasm go test -tags=example,ebitenwebgl1 -v ./... + - name: go test (Wasm) + # TODO: Investigate times out on Windows. (#1313) + if: ${{ !startsWith(matrix.os, 'windows-') && !startsWith(matrix.go, '1.15.') && !startsWith(matrix.go, '1.16.') }} + run: | + env GOOS=js GOARCH=wasm go test -tags=example -shuffle -v ./... + env GOOS=js GOARCH=wasm go test -tags=example,ebitenwebgl1 -shuffle -v ./... + - name: Install ebitenmobile run: | go install ./cmd/ebitenmobile