Skip to content

Commit

Permalink
ci: just make it test all unity versions manually
Browse files Browse the repository at this point in the history
  • Loading branch information
Cammin committed May 19, 2024
1 parent 606292c commit 44a00b0
Showing 1 changed file with 18 additions and 23 deletions.
41 changes: 18 additions & 23 deletions .github/workflows/test-runner_dispatch.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,33 @@
name: Test Runner Custom Version
name: Test Runner More Versions

on:
workflow_dispatch:
inputs:
unityVersion:
description: 'Unity version. Examples:
2019.3.15f1
2019.4.40f1
2020.1.17f1
2020.2.7f1
2020.3.48f1
2021.1.28f1
2021.2.7f1
2021.3.37f1
2022.1.14f1
2022.2.7f1
2022.3.24f1
2023.1.7f1
2023.2.18f1'
required: true
default: '2023.2.18f1'

jobs:
test:
testMoreVersions:
name: Test-${{ matrix.testMode }}-${{ matrix.unityVersion }}
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
testMode:
#- playmode
- editmode
unityVersion:
- ${{ github.event.inputs.unityVersion }}
- 2019.3.15f1
- 2019.4.40f1
- 2020.1.17f1
- 2020.2.7f1
- 2020.3.48f1
- 2021.1.28f1
- 2021.2.7f1
- 2021.3.37f1
- 2022.1.14f1
- 2022.2.7f1
- 2022.3.24f1
- 2023.1.7f1
- 2023.2.18f1

steps:
#Test Checkout
Expand All @@ -47,7 +42,7 @@ jobs:
key: Library-${{ matrix.unityVersion }}
restore-keys:
Library-${{ matrix.unityVersion }}

#Test Runner
- uses: game-ci/unity-test-runner@v4.1.1
id: tests
Expand All @@ -63,7 +58,7 @@ jobs:
checkName: Test results ${{ matrix.testMode }}-${{ matrix.unityVersion }}
unityVersion: ${{ matrix.unityVersion }}
customParameters: '-nographics'

#Test Artifact
- uses: actions/upload-artifact@v4.3.3
if: always()
Expand Down

0 comments on commit 44a00b0

Please sign in to comment.