add consecutive ppackage mode workflow step

pull/164/head
Aaron Trudeau 2022-01-27 17:54:06 -05:00
parent 522658a504
commit 9f30148453
No known key found for this signature in database
GPG Key ID: D6874B046ABF9536
1 changed files with 51 additions and 1 deletions

View File

@ -265,7 +265,7 @@ jobs:
retention-days: 14 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
strategy: strategy:
fail-fast: false fail-fast: false
@ -388,3 +388,53 @@ jobs:
name: Test results (play mode) name: Test results (play mode)
path: ${{ steps.playMode.outputs.artifactsPath }} path: ${{ steps.playMode.outputs.artifactsPath }}
retention-days: 14 retention-days: 14
testPackageModeEachModeSequentially:
name: Test package mode in each mode sequentially 📦 👩‍👩‍👧‍👦 # don't try this at home (it's much slower)
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
unityVersion:
- 2019.2.11f1
projectPath:
- unity-package-with-correct-tests/com.fake.notarealpackage
steps:
###########################
# Checkout #
###########################
- uses: actions/checkout@v2
with:
lfs: true
###########################
# Cache (not yet) #
###########################
# Configure first test runner
- name: Test package mode in editmode 📦📝
uses: ./
with:
projectPath: ${{ matrix.projectPath }}
unityVersion: ${{ matrix.unityVersion }}
testMode: editmode
artifactsPath: artifacts/editmode
packageMode: true
# Configure second test runner
- name: Test package mode in playmode 📦📺
uses: ./
with:
projectPath: ${{ matrix.projectPath }}
unityVersion: ${{ matrix.unityVersion }}
testMode: playmode
artifactsPath: artifacts/playmode
packageMode: true
# Upload combined artifacts
- name: Upload combined test results
uses: actions/upload-artifact@v2
with:
name: Test results (combined)
path: artifacts/
retention-days: 14