Skip to content

Commit 42ba145

Browse files
committed
[CI] Combine platform tests into 1 task
1 parent 97c029b commit 42ba145

File tree

1 file changed

+8
-17
lines changed

1 file changed

+8
-17
lines changed

.github/workflows/main.yml

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -94,27 +94,18 @@ jobs:
9494
- name: Build
9595
run: dotnet run --project build/Build.csproj -- --target=Default
9696

97-
- name: Test
98-
run: dotnet test Tools/MonoGame.Tools.Tests/MonoGame.Tools.Tests.csproj --blame-hang-timeout 5m -c Release --filter="TestCategory!=Audio"
97+
- name: Run Tests
98+
run: |
99+
if [ "$RUNNER_OS" == "Windows" ]; then
100+
dotnet test Tools/MonoGame.Tools.Tests/MonoGame.Tools.Tests.csproj --blame-hang-timeout 5m -c Release
101+
else
102+
dotnet test Tools/MonoGame.Tools.Tests/MonoGame.Tools.Tests.csproj --blame-hang-timeout 5m -c Release --filter="TestCategory!=Audio"
103+
fi
99104
env:
100105
DOTNET_ROOT: ${{github.workspace}}/dotnet64
101106
MGFXC_WINE_PATH: /home/runner/.winemonogame
102107
CI: true
103-
if: runner.os == 'Linux'
104-
105-
- name: Test
106-
run: dotnet test Tools/MonoGame.Tools.Tests/MonoGame.Tools.Tests.csproj --blame-hang-timeout 5m -c Release --filter="TestCategory!=Audio"
107-
env:
108-
DOTNET_ROOT: ${{github.workspace}}/dotnet64
109-
MGFXC_WINE_PATH: /Users/runner/.winemonogame
110-
CI: true
111-
if: runner.os == 'macOS'
112-
113-
- name: Test
114-
run: dotnet test Tools/MonoGame.Tools.Tests/MonoGame.Tools.Tests.csproj --blame-hang-timeout 5m -c Release
115-
env:
116-
CI: true
117-
if: runner.os == 'Windows'
108+
shell: bash
118109

119110
- name: Expose GitHub Runtime
120111
uses: crazy-max/ghaction-github-runtime@v3

0 commit comments

Comments
 (0)