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