-
-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (37 loc) · 974 Bytes
/
main.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
name: Test package
on: [push, pull_request]
jobs:
testEditMode:
name: Test in ${{matrix.testMode}}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
projectPath:
- Packages
unityVersion:
- 2021.3.29f1
- 2022.3.13f1
testMode:
- editmode
steps:
# Checkout
- name: Checkout repository
uses: actions/checkout@v4
with:
lfs: true
# Cache
- uses: actions/cache@v3
with:
path: Library
key: Library-${{ hashFiles('Assets/**', 'Packages/**', 'ProjectSettings/**') }}
restore-keys: |
Library-
# Test
- name: Run tests
uses: game-ci/unity-test-runner@v4
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
with:
githubToken: ${{ secrets.GITHUB_TOKEN }}
packageMode: true #runs tests on packages rather than main proj