Skip to content

Commit 97a8c67

Browse files
authored
Create unity-test.yaml
1 parent 9daca3c commit 97a8c67

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/unity-test.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: unity-test
2+
3+
on:
4+
pull_request:
5+
branches: [ main ]
6+
workflow_dispatch:
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
backend:
15+
- Mono2x
16+
- IL2CPP
17+
steps:
18+
- uses: actions/checkout@master
19+
- uses: actions/cache@v2
20+
with:
21+
path: Library
22+
key: Library
23+
- uses: game-ci/unity-test-runner@v2
24+
env:
25+
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
26+
with:
27+
customParameters: -scriptingBackend ${{ matrix.backend }} -testCategory "!benchmark"
28+
projectPath: .
29+
githubToken: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)