-
Notifications
You must be signed in to change notification settings - Fork 102
42 lines (40 loc) · 1.14 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Testing
on:
push:
branches:
- master
pull_request:
branches:
- master
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
jobs:
testAllModes:
name: Test in ${{ matrix.unityVersion }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
unityVersion:
- 2019.4.40f1
steps:
- uses: actions/checkout@v3
- uses: game-ci/unity-test-runner@v4
id: tests
with:
testMode: playmode
unityVersion: ${{ matrix.unityVersion }}
checkName: ${{ matrix.unityVersion }} Test Results
coverageOptions: 'generateHtmlReport;assemblyFilters:+com.whisper.unity'
- uses: actions/upload-artifact@v3
if: always()
with:
name: Test results for ${{ matrix.unityVersion }}
path: ${{ steps.tests.outputs.artifactsPath }}
- uses: actions/upload-artifact@v3
if: always()
with:
name: Coverage results for ${{ matrix.unityVersion }}
path: ${{ steps.tests.outputs.coveragePath }}