From 893827593d4c6d6c18d5881b6bb369b1ac83f41d Mon Sep 17 00:00:00 2001 From: Aaron Trudeau <36064197+trudeaua21@users.noreply.github.com> Date: Sun, 6 Feb 2022 17:26:58 -0500 Subject: [PATCH] add package mode "like in the readme" test --- .github/workflows/main.yml | 43 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 74f3da8..0d83a38 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -264,6 +264,49 @@ jobs: path: artifacts/ 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: name: Test package mode in all modes 📦✨ runs-on: ubuntu-latest