Made it possible to initialize LiDARSensor later so that it works with the built app. #192
Workflow file for this run
This file contains hidden or 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
name: CI check for Unity | |
on: | |
pull_request: | |
branches: | |
- master | |
- beta/** | |
push: | |
branches: | |
- master | |
- beta/** | |
jobs: | |
test: | |
name: Test on Unity ${{ matrix.unityVersion }} | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
unityVersion: | |
- 2022.3.59f1 | |
- 2023.2.20f1 | |
steps: | |
# リポジトリをチェックアウト | |
- 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/[email protected] | |
env: | |
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} | |
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} | |
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} | |
with: | |
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/[email protected] | |
env: | |
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} | |
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} | |
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} | |
with: | |
projectPath: ./ | |
unityVersion: ${{ matrix.unityVersion }} | |
customParameters: -runTests -testPlatform playmode | |
artifactsPath: playmode-results | |
# アーティファクトのアップロード(プレイモード) | |
- name: Upload Play Mode Test results for ${{ matrix.unityVersion }} | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Play Mode Test results for Unity ${{ matrix.unityVersion }} | |
path: playmode-results |