-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add email and password to unity-test-runner - Upgrade Unity versions running on workflows (cherry picked from commit 3385efb)
- Loading branch information
1 parent
ef028b7
commit 6d6f6d1
Showing
2 changed files
with
17 additions
and
11 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 |
---|---|---|
|
@@ -24,6 +24,7 @@ concurrency: | |
|
||
jobs: | ||
test: | ||
if: github.event.pull_request.head.repo.fork == false # Skip on public fork, because can not read secrets. | ||
runs-on: ${{ github.event.inputs.runner }} | ||
permissions: | ||
contents: read | ||
|
@@ -32,9 +33,9 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
unityVersion: # Available versions see: https://game.ci/docs/docker/versions | ||
- 2021.3.31f1 | ||
- 2022.3.12f1 | ||
- 2023.1.18f1 | ||
- 2021.3.33f1 | ||
- 2022.3.15f1 | ||
- 2023.2.3f1 | ||
|
||
steps: | ||
- name: Checkout repository | ||
|
@@ -61,7 +62,7 @@ jobs: | |
run: echo "secret_key=UNITY_LICENSE_$(echo ${{ matrix.unityVersion }} | cut -c 1-4)" >> "$GITHUB_ENV" | ||
|
||
- name: Run tests | ||
uses: game-ci/unity-test-runner@v3 | ||
uses: game-ci/unity-test-runner@v4 | ||
with: | ||
githubToken: ${{ secrets.GITHUB_TOKEN }} | ||
unityVersion: ${{ matrix.unityVersion }} # Default is `auto` | ||
|
@@ -71,6 +72,8 @@ jobs: | |
# see: https://docs.unity3d.com/Packages/[email protected]/manual/CoverageBatchmode.html | ||
env: | ||
UNITY_LICENSE: ${{ secrets[env.secret_key] }} | ||
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} | ||
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} | ||
id: test | ||
|
||
- name: Upload test results | ||
|
@@ -84,10 +87,10 @@ jobs: | |
|
||
notify: | ||
needs: test | ||
if: github.event.pull_request.head.repo.fork == false # Skip on public fork, because can not read secrets. | ||
runs-on: ubuntu-latest | ||
permissions: | ||
actions: read | ||
if: always() | ||
|
||
steps: | ||
- uses: Gamesight/[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 |
---|---|---|
|
@@ -24,6 +24,7 @@ concurrency: | |
|
||
jobs: | ||
test: | ||
if: github.event.pull_request.head.repo.fork == false # Skip on public fork, because can not read secrets. | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
|
@@ -33,11 +34,11 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
unityVersion: # Available versions see: https://game.ci/docs/docker/versions | ||
- 2021.3.31f1 | ||
- 2022.3.12f1 | ||
- 2023.1.18f1 | ||
- 2021.3.33f1 | ||
- 2022.3.15f1 | ||
- 2023.2.3f1 | ||
include: | ||
- unityVersion: 2021.3.31f1 | ||
- unityVersion: 2021.3.33f1 | ||
octocov: true | ||
|
||
steps: | ||
|
@@ -65,7 +66,7 @@ jobs: | |
run: echo "secret_key=UNITY_LICENSE_$(echo ${{ matrix.unityVersion }} | cut -c 1-4)" >> "$GITHUB_ENV" | ||
|
||
- name: Run tests | ||
uses: game-ci/unity-test-runner@v3 | ||
uses: game-ci/unity-test-runner@v4 | ||
with: | ||
githubToken: ${{ secrets.GITHUB_TOKEN }} | ||
unityVersion: ${{ matrix.unityVersion }} # Default is `auto` | ||
|
@@ -75,6 +76,8 @@ jobs: | |
# see: https://docs.unity3d.com/Packages/[email protected]/manual/CoverageBatchmode.html | ||
env: | ||
UNITY_LICENSE: ${{ secrets[env.secret_key] }} | ||
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} | ||
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} | ||
id: test | ||
|
||
- name: Set coverage path for octocov | ||
|
@@ -96,10 +99,10 @@ jobs: | |
|
||
notify: | ||
needs: test | ||
if: github.event.pull_request.head.repo.fork == false # Skip on public fork, because can not read secrets. | ||
runs-on: ubuntu-latest | ||
permissions: | ||
actions: read | ||
if: always() | ||
|
||
steps: | ||
- uses: Gamesight/[email protected] | ||
|