-
-
Notifications
You must be signed in to change notification settings - Fork 84
55 lines (48 loc) · 1.66 KB
/
tests.yaml
File metadata and controls
55 lines (48 loc) · 1.66 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Tests
on:
push:
branches-ignore:
- documentation
- gh-pages
pull_request: {}
jobs:
test:
name: ${{ matrix.testMode }} on Unity ${{ matrix.unityVersion }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
projectPath:
- .
unityVersion:
- 2021.3.45f2
- 2023.2.22f1
testMode:
- editmode
steps:
- name: Checkout
uses: actions/checkout@v4
with:
lfs: true
- name: Cache
uses: actions/cache@v4
with:
path: ${{ matrix.projectPath }}/Library
key: Library-${{ runner.os }}-${{ matrix.projectPath }}-${{ matrix.unityVersion }}-${{ matrix.testMode }}-${{ hashFiles('**/Packages/manifest.json', '**/Packages/packages-lock.json', '**/ProjectSettings/ProjectVersion.txt') }}
restore-keys: |
Library-${{ runner.os }}-${{ matrix.projectPath }}-${{ matrix.unityVersion }}-${{ matrix.testMode }}-
Library-${{ runner.os }}-${{ matrix.projectPath }}-${{ matrix.unityVersion }}-
Library-${{ runner.os }}-${{ matrix.projectPath }}-
- name: Tests
uses: game-ci/unity-test-runner@v4
id: tests
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
with:
projectPath: ${{ matrix.projectPath }}
unityVersion: ${{ matrix.unityVersion }}
testMode: ${{ matrix.testMode }}
artifactsPath: test-results
artifactsName: TestResults-${{ matrix.unityVersion }}-${{ matrix.testMode }}