Skip to content

Versions testing

Versions testing #28

Workflow file for this run

name: Testing
on: [push, pull_request]
jobs:
testAllModes:
name: Test in ${{ matrix.unityVersion }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
unityVersion:
- 2019.4.40f1
- 2020.3.48f1
- 2021.3.25f1
- 2022.2.19f1
steps:
- uses: actions/checkout@v2
- uses: game-ci/unity-test-runner@v2
id: tests
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
with:
githubToken: ${{ secrets.GITHUB_TOKEN }}
testMode: playmode
unityVersion: ${{ matrix.unityVersion }}
coverageOptions: 'generateHtmlReport;assemblyFilters:+com.whisper.unity'
- uses: actions/upload-artifact@v2
if: always()
with:
name: Test results for ${{ matrix.unityVersion }}
path: ${{ steps.tests.outputs.artifactsPath }}
- uses: actions/upload-artifact@v2
if: always()
with:
name: Coverage results for ${{ matrix.unityVersion }}
path: ${{ steps.tests.outputs.coveragePath }}