Force standalone tests in the test.yml workflow #59
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run TestRunner 📝 | |
on: | |
workflow_dispatch: {} | |
pull_request: | |
env: | |
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} | |
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} | |
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} | |
jobs: | |
testAllModes: | |
name: Test in '${{ matrix.testMode }}' 📝 | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
testMode: | |
- playmode | |
- editmode | |
- standalone | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
lfs: true | |
- uses: actions/cache@v3 | |
with: | |
path: Library | |
key: Library-test-project | |
restore-keys: | | |
Library-test-project- | |
Library- | |
- uses: game-ci/unity-test-runner@v4 | |
id: tests | |
with: | |
testMode: ${{ matrix.testMode }} | |
artifactsPath: ${{ matrix.testMode }}-artifacts | |
checkName: ${{ matrix.testMode }} Test Results | |
- uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: Test results for ${{ matrix.testMode }} | |
path: ${{ steps.tests.outputs.artifactsPath }} |