Skip to content

Commit 10ff0ac

Browse files
committed
Add Unity credentials and GitHub token as inputs for editor workflows
1 parent f7d8137 commit 10ff0ac

File tree

8 files changed

+51
-11
lines changed

8 files changed

+51
-11
lines changed

.github/workflows/2019.4.40f1_editor.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,8 @@ jobs:
1414
with:
1515
projectPath: './'
1616
unityVersion: '2019.4.40f1'
17-
testMode: 'editmode'
17+
testMode: 'editmode'
18+
unityEmail: ${{ secrets.UNITY_EMAIL }}
19+
unityPassword: ${{ secrets.UNITY_PASSWORD }}
20+
unityLicense: ${{ secrets.UNITY_LICENSE }}
21+
githubToken: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/2020.3.40f1_editor.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,8 @@ jobs:
1414
with:
1515
projectPath: './'
1616
unityVersion: '2020.3.40f1'
17-
testMode: 'editmode'
17+
testMode: 'editmode'
18+
unityEmail: ${{ secrets.UNITY_EMAIL }}
19+
unityPassword: ${{ secrets.UNITY_PASSWORD }}
20+
unityLicense: ${{ secrets.UNITY_LICENSE }}
21+
githubToken: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/2021.3.45f1_editor.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,8 @@ jobs:
1414
with:
1515
projectPath: './'
1616
unityVersion: '2021.3.45f1'
17-
testMode: 'editmode'
17+
testMode: 'editmode'
18+
unityEmail: ${{ secrets.UNITY_EMAIL }}
19+
unityPassword: ${{ secrets.UNITY_PASSWORD }}
20+
unityLicense: ${{ secrets.UNITY_LICENSE }}
21+
githubToken: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/2022.3.57f1_editor.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,8 @@ jobs:
1414
with:
1515
projectPath: './'
1616
unityVersion: '2022.3.57f1'
17-
testMode: 'editmode'
17+
testMode: 'editmode'
18+
unityEmail: ${{ secrets.UNITY_EMAIL }}
19+
unityPassword: ${{ secrets.UNITY_PASSWORD }}
20+
unityLicense: ${{ secrets.UNITY_LICENSE }}
21+
githubToken: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/2023.1.20f1_editor.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,8 @@ jobs:
1414
with:
1515
projectPath: './'
1616
unityVersion: '2023.1.20f1'
17-
testMode: 'editmode'
17+
testMode: 'editmode'
18+
unityEmail: ${{ secrets.UNITY_EMAIL }}
19+
unityPassword: ${{ secrets.UNITY_PASSWORD }}
20+
unityLicense: ${{ secrets.UNITY_LICENSE }}
21+
githubToken: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/2023.2.20f1_editor.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,8 @@ jobs:
1414
with:
1515
projectPath: './'
1616
unityVersion: '2023.2.20f1'
17-
testMode: 'editmode'
17+
testMode: 'editmode'
18+
unityEmail: ${{ secrets.UNITY_EMAIL }}
19+
unityPassword: ${{ secrets.UNITY_PASSWORD }}
20+
unityLicense: ${{ secrets.UNITY_LICENSE }}
21+
githubToken: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/6000.0.37f1_editor.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,8 @@ jobs:
1414
with:
1515
projectPath: './'
1616
unityVersion: '6000.0.37f1'
17-
testMode: 'editmode'
17+
testMode: 'editmode'
18+
unityEmail: ${{ secrets.UNITY_EMAIL }}
19+
unityPassword: ${{ secrets.UNITY_PASSWORD }}
20+
unityLicense: ${{ secrets.UNITY_LICENSE }}
21+
githubToken: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/main.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,18 @@ on:
1212
testMode:
1313
required: true
1414
type: string
15+
unityEmail:
16+
required: true
17+
type: string
18+
unityPassword:
19+
required: true
20+
type: string
21+
unityLicense:
22+
required: true
23+
type: string
24+
githubToken:
25+
required: true
26+
type: string
1527

1628
jobs:
1729
test:
@@ -30,13 +42,13 @@ jobs:
3042
- uses: game-ci/unity-test-runner@v4
3143
id: tests
3244
env:
33-
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
34-
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
35-
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
45+
UNITY_LICENSE: ${{ inputs.unityLicense }}
46+
UNITY_EMAIL: ${{ inputs.unityEmail }}
47+
UNITY_PASSWORD: ${{ inputs.unityPassword }}
3648
with:
3749
projectPath: ${{ inputs.projectPath }}
3850
unityVersion: ${{ inputs.unityVersion }}
3951
testMode: ${{ inputs.testMode }}
4052
artifactsPath: ${{ inputs.testMode }}-artifacts
41-
githubToken: ${{ secrets.GITHUB_TOKEN }}
53+
githubToken: ${{ inputs.githubToken }}
4254
checkName: ${{ inputs.unityVersion }} ${{ inputs.testMode }} Test Results

0 commit comments

Comments
 (0)