Skip to content

Update for version 4.0.1 #170

Update for version 4.0.1

Update for version 4.0.1 #170

Workflow file for this run

name: Test
on:
pull_request:
types: [opened, synchronize]
pull_request_target:
types: [labeled]
push: { branches: [main] }
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
jobs:
testAllModes:
name: Test in ${{ matrix.testMode }} on version ${{ matrix.unityVersion }}
runs-on: ubuntu-latest
if: (github.event_name != 'pull_request_target' && !contains(github.event.pull_request.labels.*.name, 'run to test')) || contains(github.event.pull_request.labels.*.name, 'run to test')
strategy:
fail-fast: false
matrix:
projectPath:
- NuGetImporterForUnity
unityVersion:
- 2020.3.48f1
- 2021.3.33f1
- 2022.3.16f1
testMode:
- editmode
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v3
with:
path: ${{ matrix.projectPath }}/Library
key: Library-${{ matrix.projectPath }}
restore-keys: |
Library-
- uses: game-ci/unity-test-runner@v4
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
id: tests
with:
projectPath: ${{ matrix.projectPath }}
unityVersion: ${{ matrix.unityVersion }}
testMode: ${{ matrix.testMode }}
artifactsPath: ${{ matrix.testMode }}-artifacts
- uses: actions/upload-artifact@v4
if: always()
with:
name: Test results for ${{ matrix.testMode }} with ${{ matrix.unityVersion }}
path: ${{ steps.tests.outputs.artifactsPath }}