Skip to content

Update to test unity 2022.3.x #147

Update to test unity 2022.3.x

Update to test unity 2022.3.x #147

Workflow file for this run

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
jobs:
testAllModes:
name: Test in ${{ matrix.testMode }} on version ${{ matrix.unityVersion }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
projectPath:
- ./
unityVersion:
- 2020.3.48f1
- 2021.3.42f1
- 2022.3.42f1
testMode:
- all
# - playmode
# - editmode
steps:
- uses: actions/checkout@v4
with:
lfs: true
- uses: actions/cache@v4
with:
path: ${{ matrix.projectPath }}/Library
key: Library-${{ matrix.unityVersion }}-${{ matrix.projectPath }}-${{ matrix.testMode }}
restore-keys: |
Library-${{ matrix.unityVersion }}-${{ matrix.projectPath }}
Library-${{ matrix.projectPath }}
Library-
- name: Activate Unity ${{ matrix.unityVersion }}
uses: game-ci/unity-activate@v2 # 正しいバージョンに変更
with:
unityVersion: ${{ matrix.unityVersion }}
unityEmail: ${{ secrets.UNITY_EMAIL }}
unityPassword: ${{ secrets.UNITY_PASSWORD }}
unitySerial: ${{ secrets.UNITY_SERIAL }} # シリアルキーが必要な場合
- uses: game-ci/unity-test-runner@v4
id: tests
with:
projectPath: ${{ matrix.projectPath }}
unityVersion: ${{ matrix.unityVersion }}
testMode: ${{ matrix.testMode }}
artifactsPath: ${{ matrix.testMode }}-artifacts
- uses: actions/upload-artifact@v4
with:
name: Test results for ${{ matrix.testMode }}
path: ${{ steps.tests.outputs.artifactsPath }}