From 9f30148453097540bff4215103728f221d7f6286 Mon Sep 17 00:00:00 2001 From: Aaron Trudeau <36064197+trudeaua21@users.noreply.github.com> Date: Thu, 27 Jan 2022 17:54:06 -0500 Subject: [PATCH] add consecutive ppackage mode workflow step --- .github/workflows/main.yml | 52 +++++++++++++++++++++++++++++++++++++- 1 file changed, 51 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3842af7..74f3da8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -265,7 +265,7 @@ jobs: retention-days: 14 testPackageRunnerInAllModes: - name: Test package mode in all modes โœจ + name: Test package mode in all modes ๐Ÿ“ฆโœจ runs-on: ubuntu-latest strategy: fail-fast: false @@ -388,3 +388,53 @@ jobs: name: Test results (play mode) path: ${{ steps.playMode.outputs.artifactsPath }} 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