-
Notifications
You must be signed in to change notification settings - Fork 34
43 lines (39 loc) · 1.23 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
43
name: Test package
on: [push, pull_request]
jobs:
test:
name: Run Tests in ${{ matrix.testMode }} ${{ matrix.unityVersion }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
testMode:
- playmode
# - editmode
projectPath:
- test-package
unityVersion:
- 2022.3.19f1
- 2019.4.40f1
- 2020.3.48f1
steps:
- name: Checkout Repo
uses: actions/checkout@v4
with:
lfs: true
- name: Setup Environment
run: |
mkdir ${{ matrix.projectPath }}
mv Editor Runtime Tests Android iOS Windows package.json ${{ matrix.projectPath }}/
- name: Run Tests
uses: game-ci/[email protected]
env:
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
UNITY_SERIAL: ${{ secrets.UNITY_SERIAL }}
with:
packageMode: true
projectPath: ${{ matrix.projectPath }}/
testMode: ${{ matrix.testMode }}
unityVersion: ${{ matrix.unityVersion }}
coverageOptions: "generateAdditionalMetrics;generateHtmlReport;generateBadgeReport;assemblyFilters:+my.assembly.*"