Skip to content

Commit

Permalink
[CI] Combine platform tests into 1 task
Browse files Browse the repository at this point in the history
  • Loading branch information
harry-cpp committed Nov 16, 2024
1 parent 97c029b commit c929323
Showing 1 changed file with 10 additions and 17 deletions.
27 changes: 10 additions & 17 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,27 +94,20 @@ jobs:
- name: Build
run: dotnet run --project build/Build.csproj -- --target=Default

- name: Test
run: dotnet test Tools/MonoGame.Tools.Tests/MonoGame.Tools.Tests.csproj --blame-hang-timeout 5m -c Release --filter="TestCategory!=Audio"
- name: Run Tests
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
dotnet test Tools/MonoGame.Tools.Tests/MonoGame.Tools.Tests.csproj --blame-hang-timeout 5m -c Release --filter="TestCategory!=Audio"
elif [ "$RUNNER_OS" == "Windows" ]; then
dotnet test Tools/MonoGame.Tools.Tests/MonoGame.Tools.Tests.csproj --blame-hang-timeout 5m -c Release --filter="TestCategory!=Audio"
else
dotnet test Tools/MonoGame.Tools.Tests/MonoGame.Tools.Tests.csproj --blame-hang-timeout 5m -c Release
fi
env:
DOTNET_ROOT: ${{github.workspace}}/dotnet64
MGFXC_WINE_PATH: /home/runner/.winemonogame
CI: true
if: runner.os == 'Linux'

- name: Test
run: dotnet test Tools/MonoGame.Tools.Tests/MonoGame.Tools.Tests.csproj --blame-hang-timeout 5m -c Release --filter="TestCategory!=Audio"
env:
DOTNET_ROOT: ${{github.workspace}}/dotnet64
MGFXC_WINE_PATH: /Users/runner/.winemonogame
CI: true
if: runner.os == 'macOS'

- name: Test
run: dotnet test Tools/MonoGame.Tools.Tests/MonoGame.Tools.Tests.csproj --blame-hang-timeout 5m -c Release
env:
CI: true
if: runner.os == 'Windows'
shell: bash

- name: Expose GitHub Runtime
uses: crazy-max/ghaction-github-runtime@v3
Expand Down

0 comments on commit c929323

Please sign in to comment.