diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f7d862a..0ff303c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -115,6 +115,54 @@ jobs: path: ${{ steps.allTests.outputs.artifactsPath }} retention-days: 14 + testRunnerInAllModesWithCoverage: + name: Test all modes ✨ + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + projectPath: + - unity-project-with-correct-tests + unityVersion: + - 2019.2.11f1 + steps: + ########################### + # Checkout # + ########################### + - uses: actions/checkout@v3 + with: + lfs: true + + ########################### + # Cache # + ########################### + - uses: actions/cache@v3 + with: + path: ${{ matrix.projectPath }}/Library + key: Library-${{ matrix.projectPath }}-${{ matrix.targetPlatform }} + restore-keys: | + Library-${{ matrix.projectPath }}- + Library- + + # Configure test runner + - name: Run tests + id: allTests + uses: ./ + with: + projectPath: ${{ matrix.projectPath }} + unityVersion: ${{ matrix.unityVersion }} + testMode: all + coverageReport: true + # Test implicit artifactsPath, by not setting it + + # Upload artifacts + - name: Upload test results + uses: actions/upload-artifact@v2 + with: + name: Test results with coverage (all) + path: ${{ steps.allTests.outputs.artifactsPath }} + retention-days: 14 + testRunnerInEditMode: name: Test edit mode 📝 runs-on: ubuntu-latest