Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to test unity2020.3.x to 2022.3.x for beta/2.x.x #182

Merged
merged 3 commits into from
Oct 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 0 additions & 22 deletions .github/workflows/activation.yml

This file was deleted.

22 changes: 0 additions & 22 deletions .github/workflows/activation2020.yml

This file was deleted.

22 changes: 0 additions & 22 deletions .github/workflows/activation2021.yml

This file was deleted.

22 changes: 0 additions & 22 deletions .github/workflows/activation2022.yml

This file was deleted.

84 changes: 50 additions & 34 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,51 +1,67 @@
# This is a basic workflow to help you get started with Actions
name: CI check for Unity 2020.3.x, 2021.3.x, 2022.3.x

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
- 2020.3.48f1
- 2021.3.42f1
- 2022.3.42f1

steps:
- uses: actions/checkout@v2
# リポジトリをチェックアウト
- name: Checkout repository
uses: actions/checkout@v4
with:
lfs: true
- uses: actions/[email protected]
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:
path: ${{ matrix.projectPath }}/Library
key: Library-${{ matrix.projectPath }}
restore-keys: |
Library-
- uses: webbertakken/[email protected]
id: tests
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:
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@v1
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