Skip to content

Commit

Permalink
Add run tests on standalone player
Browse files Browse the repository at this point in the history
  • Loading branch information
nowsprinting committed Oct 26, 2024
1 parent 90d1636 commit 3ed9766
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/test-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ jobs:
- 2022.3.42f1
- 2023.2.20f1
- 6000.0.22f1
testMode:
- All # run tests in editor
include:
- unityVersion: 2023.2.20f1
testMode: Standalone # run tests on player

steps:
- name: Checkout repository
Expand Down Expand Up @@ -72,10 +77,11 @@ jobs:
with:
githubToken: ${{ secrets.GITHUB_TOKEN }}
unityVersion: ${{ matrix.unityVersion }} # Default is `auto`
checkName: test result (${{ matrix.unityVersion }})
checkName: test result (${{ matrix.unityVersion }}, ${{ matrix.testMode }})
customParameters: -testCategory "Integration"
coverageOptions: generateAdditionalMetrics;generateTestReferences;generateHtmlReport;generateAdditionalReports;dontClear;assemblyFilters:${{ env.assembly_filters }}
# see: https://docs.unity3d.com/Packages/[email protected]/manual/CoverageBatchmode.html
testMode: ${{ matrix.testMode }}
env:
UNITY_LICENSE: ${{ secrets[env.secret_key] }}
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
Expand All @@ -85,7 +91,7 @@ jobs:
- name: Upload test results
uses: actions/upload-artifact@v4
with:
name: TestResults-Unity${{ matrix.unityVersion }}
name: TestResults-Unity${{ matrix.unityVersion }}-${{ matrix.testMode }}
path: |
${{ steps.test.outputs.artifactsPath }}
${{ steps.test.outputs.coveragePath }}
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,13 @@ jobs:
- 2022.3.42f1
- 2023.2.20f1
- 6000.0.22f1
testMode:
- All # run tests in editor
include:
- unityVersion: 2019.4.40f1
octocov: true
- unityVersion: 2023.2.20f1
testMode: Standalone # run tests on player

steps:
- name: Checkout repository
Expand Down Expand Up @@ -76,10 +80,11 @@ jobs:
with:
githubToken: ${{ secrets.GITHUB_TOKEN }}
unityVersion: ${{ matrix.unityVersion }} # Default is `auto`
checkName: test result (${{ matrix.unityVersion }})
checkName: test result (${{ matrix.unityVersion }}, ${{ matrix.testMode }})
customParameters: -testCategory "!IgnoreCI;!Integration"
coverageOptions: generateAdditionalMetrics;generateTestReferences;generateHtmlReport;generateAdditionalReports;dontClear;assemblyFilters:${{ env.assembly_filters }}
# see: https://docs.unity3d.com/Packages/[email protected]/manual/CoverageBatchmode.html
testMode: ${{ matrix.testMode }}
env:
UNITY_LICENSE: ${{ secrets[env.secret_key] }}
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
Expand All @@ -97,7 +102,7 @@ jobs:
- name: Upload test results
uses: actions/upload-artifact@v4
with:
name: TestResults-Unity${{ matrix.unityVersion }}
name: TestResults-Unity${{ matrix.unityVersion }}-${{ matrix.testMode }}
path: |
${{ steps.test.outputs.artifactsPath }}
${{ steps.test.outputs.coveragePath }}
Expand Down

0 comments on commit 3ed9766

Please sign in to comment.