Skip to content

Commit 603928f

Browse files
authored
Update to test unity 2022.3.x (#176)
* Update to test unity 2020 to 2022 * Update repository for activation * Fix activation version * Add all manual activation method * Update repository to get acrivation * Fix typo * Update repository and version * Delete unsupported ci The manual activation is no longer supported by Unity. Thus, you can not get .alf file with Action. And you need to get .ulf file from your local PC. In this repository, we set Ryodo Tanaka's .ulf file as UNITY_LICENSE file. If you need more details, go to following. https://game.ci/docs/github/activation * Update to latest unity test runner * Fix to add license, email, password info * Update to test only 2022.3.x * Fix non exist version in game-ci repository
1 parent 3f6ba80 commit 603928f

File tree

5 files changed

+48
-122
lines changed

5 files changed

+48
-122
lines changed

.github/workflows/activation.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

.github/workflows/activation2020.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

.github/workflows/activation2021.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

.github/workflows/activation2022.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

.github/workflows/main.yml

Lines changed: 48 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,65 @@
1-
# This is a basic workflow to help you get started with Actions
1+
name: Unity 2022.3.x Test Runner
22

3-
name: CI
4-
5-
# Controls when the action will run. Triggers the workflow on push or pull request
6-
# events but only for the master branch
73
on:
84
pull_request:
95
branches:
10-
- master
11-
- develop
12-
13-
env:
14-
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
6+
- master
7+
- beta/**
158

169
jobs:
17-
testAllModes:
18-
name: Test in ${{ matrix.testMode }} on version ${{ matrix.unityVersion }}
10+
test:
11+
name: Test on Unity ${{ matrix.unityVersion }}
1912
runs-on: ubuntu-latest
13+
2014
strategy:
2115
fail-fast: false
2216
matrix:
23-
projectPath:
24-
- ./
2517
unityVersion:
26-
- 2020.1.13f1
27-
testMode:
28-
- all
29-
# - playmode
30-
# - editmode
18+
- 2022.3.42f1
19+
3120
steps:
32-
- uses: actions/checkout@v2
21+
# リポジトリをチェックアウト
22+
- name: Checkout repository
23+
uses: actions/checkout@v4
24+
with:
25+
lfs: true # Large File Storageが必要な場合に true を指定
26+
27+
# Unity Test Runnerを実行 (エディットモードテスト)
28+
- name: Run Edit Mode Tests
29+
uses: game-ci/unity-test-runner@v4
30+
env:
31+
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
32+
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
33+
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
3334
with:
34-
lfs: true
35-
- uses: actions/[email protected]
35+
projectPath: ./
36+
unityVersion: ${{ matrix.unityVersion }}
37+
customParameters: -runTests -testPlatform editmode
38+
artifactsPath: editmode-results
39+
40+
# アーティファクトのアップロード(エディットモード)
41+
- name: Upload Edit Mode Test results for ${{ matrix.unityVersion }}
42+
uses: actions/upload-artifact@v4
3643
with:
37-
path: ${{ matrix.projectPath }}/Library
38-
key: Library-${{ matrix.projectPath }}
39-
restore-keys: |
40-
Library-
41-
- uses: webbertakken/[email protected]
42-
id: tests
44+
name: Edit Mode Test results for Unity ${{ matrix.unityVersion }}
45+
path: editmode-results
46+
47+
# Unity Test Runnerを実行 (プレイモードテスト)
48+
- name: Run Play Mode Tests
49+
uses: game-ci/unity-test-runner@v4
50+
env:
51+
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
52+
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
53+
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
4354
with:
44-
projectPath: ${{ matrix.projectPath }}
55+
projectPath: ./
4556
unityVersion: ${{ matrix.unityVersion }}
46-
testMode: ${{ matrix.testMode }}
47-
artifactsPath: ${{ matrix.testMode }}-artifacts
48-
- uses: actions/upload-artifact@v4
57+
customParameters: -runTests -testPlatform playmode
58+
artifactsPath: playmode-results
59+
60+
# アーティファクトのアップロード(プレイモード)
61+
- name: Upload Play Mode Test results for ${{ matrix.unityVersion }}
62+
uses: actions/upload-artifact@v4
4963
with:
50-
name: Test results for ${{ matrix.testMode }}
51-
path: ${{ steps.tests.outputs.artifactsPath }}
64+
name: Play Mode Test results for Unity ${{ matrix.unityVersion }}
65+
path: playmode-results

0 commit comments

Comments
 (0)