add coverage to package mode tests
parent
c927250c22
commit
d0104eb324
|
@ -354,6 +354,7 @@ jobs:
|
||||||
projectPath: ${{ matrix.projectPath }}
|
projectPath: ${{ matrix.projectPath }}
|
||||||
unityVersion: ${{ matrix.unityVersion }}
|
unityVersion: ${{ matrix.unityVersion }}
|
||||||
testMode: all
|
testMode: all
|
||||||
|
coverageOptions: 'generateAdditionalMetrics;generateHtmlReport;generateBadgeReport;assemblyFilters:+MyScripts'
|
||||||
packageMode: true
|
packageMode: true
|
||||||
# Test implicit artifactsPath, by not setting it
|
# Test implicit artifactsPath, by not setting it
|
||||||
|
|
||||||
|
@ -365,6 +366,14 @@ jobs:
|
||||||
path: ${{ steps.packageAllTests.outputs.artifactsPath }}
|
path: ${{ steps.packageAllTests.outputs.artifactsPath }}
|
||||||
retention-days: 14
|
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:
|
testPackageRunnerInEditMode:
|
||||||
name: Test package mode in edit mode 📦📝
|
name: Test package mode in edit mode 📦📝
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -402,6 +411,14 @@ jobs:
|
||||||
path: ${{ steps.packageEditMode.outputs.artifactsPath }}
|
path: ${{ steps.packageEditMode.outputs.artifactsPath }}
|
||||||
retention-days: 14
|
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:
|
testPackageRunnerInPlayMode:
|
||||||
name: Test package mode in play mode 📦📺
|
name: Test package mode in play mode 📦📺
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -439,6 +456,14 @@ jobs:
|
||||||
path: ${{ steps.packagePlayMode.outputs.artifactsPath }}
|
path: ${{ steps.packagePlayMode.outputs.artifactsPath }}
|
||||||
retention-days: 14
|
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:
|
testPackageModeEachModeSequentially:
|
||||||
name: Test package mode in each mode sequentially 📦 👩👩👧👦 # don't try this at home (it's much slower)
|
name: Test package mode in each mode sequentially 📦 👩👩👧👦 # don't try this at home (it's much slower)
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
Loading…
Reference in New Issue