From d0104eb3244f8d72e022ea5544e15a02d3d208bb Mon Sep 17 00:00:00 2001 From: Aaron Trudeau <36064197+trudeaua21@users.noreply.github.com> Date: Tue, 26 Apr 2022 19:46:44 -0400 Subject: [PATCH] add coverage to package mode tests --- .github/workflows/main.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 342de97..e033c82 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -354,6 +354,7 @@ jobs: projectPath: ${{ matrix.projectPath }} unityVersion: ${{ matrix.unityVersion }} testMode: all + coverageOptions: 'generateAdditionalMetrics;generateHtmlReport;generateBadgeReport;assemblyFilters:+MyScripts' packageMode: true # Test implicit artifactsPath, by not setting it @@ -365,6 +366,14 @@ jobs: path: ${{ steps.packageAllTests.outputs.artifactsPath }} retention-days: 14 + # Upload coverage + - name: Upload coverage results + uses: actions/upload-artifact@v3 + with: + name: Coverage results (all) + path: ${{ steps.packageAllTests.outputs.coveragePath }} + retention-days: 14 + testPackageRunnerInEditMode: name: Test package mode in edit mode ๐Ÿ“ฆ๐Ÿ“ runs-on: ubuntu-latest @@ -402,6 +411,14 @@ jobs: path: ${{ steps.packageEditMode.outputs.artifactsPath }} retention-days: 14 + # Upload coverage + - name: Upload coverage results + uses: actions/upload-artifact@v3 + with: + name: Coverage results (edit mode) + path: ${{ steps.packageEditMode.outputs.coveragePath }} + retention-days: 14 + testPackageRunnerInPlayMode: name: Test package mode in play mode ๐Ÿ“ฆ๐Ÿ“บ runs-on: ubuntu-latest @@ -439,6 +456,14 @@ jobs: path: ${{ steps.packagePlayMode.outputs.artifactsPath }} retention-days: 14 + # Upload coverage + - name: Upload coverage results + uses: actions/upload-artifact@v3 + with: + name: Coverage results (play mode) + path: ${{ steps.packagePlayMode.outputs.coveragePath }} + 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