-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (49 loc) · 1.55 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
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Test
on:
push:
branches:
- main
pull_request:
types:
- opened
- synchronize
- reopened
jobs:
build:
uses: ./.github/workflows/build.yml
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup repository
run: |
mkdir .github/ProjectRoot/Packages/dev.paltee.avatar-aid -p
mv * .github/ProjectRoot/Packages/dev.paltee.avatar-aid
- uses: anatawa12/sh-actions/resolve-vpm-packages@master
with:
project-path: .github/ProjectRoot
repos: |
https://vpm.nadena.dev/vpm-prerelease.json
- uses: actions/cache@v4
with:
path: .github/ProjectRoot/Library
key: Library-${{ hashFiles('.github/ProjectRoot/Packages/*.json') }}
restore-keys: Library-
- uses: game-ci/unity-test-runner@v4
id: gameci
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
with:
unityVersion: 2022.3.22f1
testMode: EditMode
projectPath: .github/ProjectRoot
coverageOptions: generateAdditionalMetrics;generateHtmlReport;generateBadgeReport;assemblyFilters:+dev.paltee.*,-dev.paltee.*.tests
githubToken: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/upload-artifact@v4
with:
name: Coverage Report
path: ${{ steps.gameci.outputs.coveragePath }}