generated from ayutaz/unity_template_repository
-
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (32 loc) · 1.07 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
name: Test
# Controls when the action will run.
on:
pull_request:
branches:
- main
types: [opened, synchronize, reopened]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
test:
name: Run EditMode and PlayMode Test
runs-on: ubuntu-latest
steps:
- name: Check out my unity project.
uses: actions/checkout@v4.1.1
- name: Run EditMode and PlayMode Test
uses: game-ci/unity-test-runner@v4.1.1
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
with:
projectPath: .
githubToken: ${{ secrets.GITHUB_TOKEN }}
unityVersion: 2023.2.4f1
customParameters: -testMode EditMode
# テストの実行結果をアーティファクトにアップロードして後から参照可能にする
- uses: actions/upload-artifact@v4.0.0
if: always()
with:
name: Test results
path: artifacts