-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
1 parent
3f6ba80
commit 603928f
Showing
5 changed files
with
48 additions
and
122 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,65 @@ | ||
# This is a basic workflow to help you get started with Actions | ||
name: Unity 2022.3.x Test Runner | ||
|
||
name: CI | ||
|
||
# Controls when the action will run. Triggers the workflow on push or pull request | ||
# events but only for the master branch | ||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
- develop | ||
|
||
env: | ||
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} | ||
- master | ||
- beta/** | ||
|
||
jobs: | ||
testAllModes: | ||
name: Test in ${{ matrix.testMode }} on version ${{ matrix.unityVersion }} | ||
test: | ||
name: Test on Unity ${{ matrix.unityVersion }} | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
projectPath: | ||
- ./ | ||
unityVersion: | ||
- 2020.1.13f1 | ||
testMode: | ||
- all | ||
# - playmode | ||
# - editmode | ||
- 2022.3.42f1 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
# リポジトリをチェックアウト | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
lfs: true # Large File Storageが必要な場合に true を指定 | ||
|
||
# Unity Test Runnerを実行 (エディットモードテスト) | ||
- name: Run Edit Mode Tests | ||
uses: game-ci/unity-test-runner@v4 | ||
env: | ||
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} | ||
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} | ||
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} | ||
with: | ||
lfs: true | ||
- uses: actions/[email protected] | ||
projectPath: ./ | ||
unityVersion: ${{ matrix.unityVersion }} | ||
customParameters: -runTests -testPlatform editmode | ||
artifactsPath: editmode-results | ||
|
||
# アーティファクトのアップロード(エディットモード) | ||
- name: Upload Edit Mode Test results for ${{ matrix.unityVersion }} | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
path: ${{ matrix.projectPath }}/Library | ||
key: Library-${{ matrix.projectPath }} | ||
restore-keys: | | ||
Library- | ||
- uses: webbertakken/[email protected] | ||
id: tests | ||
name: Edit Mode Test results for Unity ${{ matrix.unityVersion }} | ||
path: editmode-results | ||
|
||
# Unity Test Runnerを実行 (プレイモードテスト) | ||
- name: Run Play Mode Tests | ||
uses: game-ci/unity-test-runner@v4 | ||
env: | ||
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} | ||
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} | ||
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} | ||
with: | ||
projectPath: ${{ matrix.projectPath }} | ||
projectPath: ./ | ||
unityVersion: ${{ matrix.unityVersion }} | ||
testMode: ${{ matrix.testMode }} | ||
artifactsPath: ${{ matrix.testMode }}-artifacts | ||
- uses: actions/upload-artifact@v4 | ||
customParameters: -runTests -testPlatform playmode | ||
artifactsPath: playmode-results | ||
|
||
# アーティファクトのアップロード(プレイモード) | ||
- name: Upload Play Mode Test results for ${{ matrix.unityVersion }} | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: Test results for ${{ matrix.testMode }} | ||
path: ${{ steps.tests.outputs.artifactsPath }} | ||
name: Play Mode Test results for Unity ${{ matrix.unityVersion }} | ||
path: playmode-results |