Skip to content

Test Runner More Versions #1

Test Runner More Versions

Test Runner More Versions #1

name: Test Runner Custom Version
on:
workflow_dispatch:
inputs:
unityVersion:
description: 'Unity version'
required: true
default: '2023.2.18f1'
jobs:
test:
name: Test-${{ matrix.testMode }}-${{ matrix.unityVersion }}
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
testMode: editmode

Check failure on line 19 in .github/workflows/test-runner_dispatch.yml

View workflow run for this annotation

GitHub Actions / Test Runner Custom Version

Invalid workflow file

The workflow is not valid. .github/workflows/test-runner_dispatch.yml (Line: 19, Col: 27): Unexpected value 'editmode'
unityVersion: ${{fromJson(github.event.inputs.unityVersion)}}
steps:
#Test Checkout
- uses: actions/[email protected]
with:
lfs: true
#Test Cache
- uses: actions/[email protected]
with:
path: Library
key: Library-${{ matrix.unityVersion }}
restore-keys:
Library-${{ matrix.unityVersion }}
#Test Runner
- uses: game-ci/[email protected]
id: tests
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
with:
projectPath: ${{ matrix.projectPath }}
testMode: ${{ matrix.testMode }}
artifactsPath: ${{ matrix.testMode }}-artifacts
githubToken: ${{ secrets.GITHUB_TOKEN }}
checkName: Test results ${{ matrix.testMode }}-${{ matrix.unityVersion }}
unityVersion: ${{ matrix.unityVersion }}
customParameters: '-nographics'
#Test Artifact
- uses: actions/[email protected]
if: always()
with:
name: Test results for ${{ matrix.testMode }}-${{ matrix.unityVersion }}
path: ${{ steps.tests.outputs.artifactsPath }}