Skip to content

Commit

Permalink
ci: cherry pick action
Browse files Browse the repository at this point in the history
  • Loading branch information
Cammin committed May 19, 2024
1 parent 24ad799 commit 91af068
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/test-runner_dispatch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
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
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 }}

0 comments on commit 91af068

Please sign in to comment.