add package mode "like in the readme" test

pull/164/head
Aaron Trudeau 2022-02-06 17:26:58 -05:00
parent 9f30148453
commit 893827593d
No known key found for this signature in database
GPG Key ID: D6874B046ABF9536
1 changed files with 43 additions and 0 deletions

View File

@ -264,6 +264,49 @@ jobs:
path: artifacts/ path: artifacts/
retention-days: 14 retention-days: 14
testAllPackageModesLikeInTheReadme:
name: Test package mode 📦 in ${{ matrix.testMode }} on version ${{ matrix.unityVersion }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
projectPath:
- unity-project-with-correct-tests
unityVersion:
- 2019.2.11f1
testMode:
- playmode
- editmode
packageMode: true
steps:
###########################
# Checkout #
###########################
- name: Checkout
uses: actions/checkout@v2
with:
lfs: true
###########################
# Cache(not yet) #
###########################
- uses: ./
id: tests
with:
projectPath: ${{ matrix.projectPath }}
unityVersion: ${{ matrix.unityVersion }}
testMode: ${{ matrix.testMode }}
artifactsPath: ${{ matrix.testMode }}-artifacts
customParameters: -profile SomeProfile -someBoolean -someValue exampleValue
- uses: actions/upload-artifact@v2
with:
name: Test results for ${{ matrix.testMode }}
path: ${{ steps.tests.outputs.artifactsPath }}
retention-days: 14
testPackageRunnerInAllModes: testPackageRunnerInAllModes:
name: Test package mode in all modes 📦✨ name: Test package mode in all modes 📦✨
runs-on: ubuntu-latest runs-on: ubuntu-latest