From 57025641a05343fb41637868385cdb6cbfeda680 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Mon, 20 Feb 2023 00:53:59 +0900 Subject: [PATCH] .github/workflows: run the ebiten package tests first Let's mitigate the test load by running the heaviest tests and depending on cache. Updates #2571 --- .github/workflows/test.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ebfa824fd..b45fb9152 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -120,6 +120,9 @@ jobs: # TODO: Add more test environments (#1305) if: runner.os == 'Linux' || runner.os == 'Windows' run: | + # Run the ebiten package tests first, which are heavy (#2571). + go test -shuffle=on -v . + # Second attempt to run the ebiten package tests should use cache. go test -shuffle=on -v ./... - name: go test (Linux 386) @@ -129,12 +132,14 @@ jobs: sudo apt-get update sudo apt-get install gcc-multilib sudo apt-get install libasound2-dev:i386 libgl1-mesa-dev:i386 libxcursor-dev:i386 libxi-dev:i386 libxinerama-dev:i386 libxrandr-dev:i386 libxxf86vm-dev:i386 + env CGO_ENABLED=1 GOARCH=386 go test -shuffle=on -v . env CGO_ENABLED=1 GOARCH=386 go test -shuffle=on -v ./... - name: go test (Linux OpenGL ES) if: runner.os == 'Linux' run: | sudo apt-get install libgles2-mesa-dev + env EBITENGINE_GRAPHICS_LIBRARY=opengl EBITENGINE_OPENGL=es go test -shuffle=on -v . env EBITENGINE_GRAPHICS_LIBRARY=opengl EBITENGINE_OPENGL=es go test -shuffle=on -v ./... - name: go test (Windows 386)