-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Divide workflow into two separated actions
- Loading branch information
1 parent
3e123a5
commit a473f98
Showing
2 changed files
with
44 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Test package | ||
name: Build package | ||
|
||
on: [push, pull_request] | ||
|
||
|
@@ -9,15 +9,11 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
testMode: | ||
- playmode | ||
# - editmode | ||
projectPath: | ||
- test-package | ||
unityVersion: | ||
- 2022.3.19f1 | ||
- 2019.4.40f1 | ||
- 2020.3.48f1 | ||
targetPlatform: | ||
- StandaloneOSX | ||
- StandaloneWindows | ||
|
@@ -37,19 +33,6 @@ jobs: | |
mkdir ${{ matrix.projectPath }} | ||
mv Editor Runtime Tests Android iOS Windows package.json ${{ matrix.projectPath }}/ | ||
- name: Run Tests | ||
uses: game-ci/[email protected] | ||
env: | ||
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} | ||
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} | ||
UNITY_SERIAL: ${{ secrets.UNITY_SERIAL }} | ||
with: | ||
packageMode: true | ||
projectPath: ${{ matrix.projectPath }}/ | ||
testMode: ${{ matrix.testMode }} | ||
unityVersion: ${{ matrix.unityVersion }} | ||
coverageOptions: "generateAdditionalMetrics;generateHtmlReport;generateBadgeReport;assemblyFilters:+my.assembly.*" | ||
|
||
- if: matrix.targetPlatform == 'Android' | ||
uses: jlumbroso/[email protected] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Test package | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
test: | ||
name: Run Tests in ${{ matrix.testMode }} ${{ matrix.unityVersion }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
testMode: | ||
- playmode | ||
# - editmode | ||
projectPath: | ||
- test-package | ||
unityVersion: | ||
- 2022.3.19f1 | ||
- 2019.4.40f1 | ||
- 2020.3.48f1 | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v4 | ||
with: | ||
lfs: true | ||
|
||
- name: Setup Environment | ||
run: | | ||
mkdir ${{ matrix.projectPath }} | ||
mv Editor Runtime Tests Android iOS Windows package.json ${{ matrix.projectPath }}/ | ||
- name: Run Tests | ||
uses: game-ci/[email protected] | ||
env: | ||
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} | ||
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} | ||
UNITY_SERIAL: ${{ secrets.UNITY_SERIAL }} | ||
with: | ||
packageMode: true | ||
projectPath: ${{ matrix.projectPath }}/ | ||
testMode: ${{ matrix.testMode }} | ||
unityVersion: ${{ matrix.unityVersion }} | ||
coverageOptions: "generateAdditionalMetrics;generateHtmlReport;generateBadgeReport;assemblyFilters:+my.assembly.*" |