1
- name : Run QA Test # Runs automated tests on a self-hosted QA machine
1
+ name : Run QA Test # Runs automated tests on self-hosted QA machines
2
2
3
3
permissions :
4
4
contents : read
10
10
- completed
11
11
workflow_dispatch :
12
12
inputs :
13
- branch_name :
14
- description : ' Branch name to simulate workflow (e.g. develop)'
15
- required : true
16
- default : ' develop'
17
13
build_id :
18
14
description : ' Build workflow run ID (e.g. For github.com/secondlife/viewer/actions/runs/1234567890 the ID is 1234567890)'
19
15
required : true
20
16
default : ' 14806728332'
21
17
22
18
concurrency :
23
- group : qa-test-run- ${{ matrix.runner }}
19
+ group : ${{ github.workflow }}- ${{ github.ref }}
24
20
cancel-in-progress : false # Prevents cancellation of in-progress jobs
25
21
26
22
jobs :
@@ -45,16 +41,16 @@ jobs:
45
41
- os : windows
46
42
runner : qa-windows-atlas
47
43
artifact : Windows-installer
48
- install-path : ' C:\viewer-sikulix -main'
44
+ install-path : ' C:\viewer-automation -main'
49
45
- os : windows
50
46
runner : qa-dan-asus
51
47
artifact : Windows-installer
52
- install-path : ' C:\viewer-sikulix -main'
48
+ install-path : ' C:\viewer-automation -main'
53
49
# Commented out until mac runner is available
54
50
# - os: mac
55
51
# runner: qa-mac
56
52
# artifact: Mac-installer
57
- # install-path: 'HOME/Documents/viewer-sikulix -main'
53
+ # install-path: 'HOME/Documents/viewer-automation -main'
58
54
fail-fast : false
59
55
60
56
runs-on : [self-hosted, "${{ matrix.runner }}"]
@@ -66,34 +62,34 @@ jobs:
66
62
github.event_name == 'workflow_dispatch'
67
63
68
64
steps :
69
- # Common steps for both OSes
65
+ # Windows-specific steps
70
66
- name : Set Build ID
71
- shell : bash
67
+ if : matrix.os == 'windows'
68
+ shell : pwsh
72
69
run : |
73
- if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
74
- echo "BUILD_ID=${{ github.event.inputs.build_id }}" >> $ GITHUB_ENV
75
- echo "ARTIFACTS_URL=https://api.github.com/repos/secondlife/viewer/actions/runs/${{ github.event.inputs.build_id }}/artifacts" >> $ GITHUB_ENV
76
- else
77
- echo "BUILD_ID=${{ github.event.workflow_run.id }}" >> $ GITHUB_ENV
78
- echo "ARTIFACTS_URL=https://api.github.com/repos/secondlife/viewer/actions/runs/${{ github.event.workflow_run.id }}/artifacts" >> $ GITHUB_ENV
79
- fi
70
+ if ( "${{ github.event_name }}" -eq "workflow_dispatch") {
71
+ echo "BUILD_ID=${{ github.event.inputs.build_id }}" | Out-File -FilePath $env: GITHUB_ENV -Append
72
+ echo "ARTIFACTS_URL=https://api.github.com/repos/secondlife/viewer/actions/runs/${{ github.event.inputs.build_id }}/artifacts" | Out-File -FilePath $env: GITHUB_ENV -Append
73
+ } else {
74
+ echo "BUILD_ID=${{ github.event.workflow_run.id }}" | Out-File -FilePath $env: GITHUB_ENV -Append
75
+ echo "ARTIFACTS_URL=https://api.github.com/repos/secondlife/viewer/actions/runs/${{ github.event.workflow_run.id }}/artifacts" | Out-File -FilePath $env: GITHUB_ENV -Append
76
+ }
80
77
81
- # Windows-specific steps
82
78
- name : Temporarily Allow PowerShell Scripts (Windows)
83
79
if : matrix.os == 'windows'
84
80
shell : pwsh
85
81
run : |
86
82
Set-ExecutionPolicy RemoteSigned -Scope Process -Force
87
83
88
- - name : Verify viewer-sikulix -main Exists (Windows)
84
+ - name : Verify viewer-automation -main Exists (Windows)
89
85
if : matrix.os == 'windows'
90
86
shell : pwsh
91
87
run : |
92
88
if (-Not (Test-Path -Path '${{ matrix.install-path }}')) {
93
- Write-Host '❌ Error: viewer-sikulix not found on runner!'
89
+ Write-Host '❌ Error: viewer-automation folder not found on runner!'
94
90
exit 1
95
91
}
96
- Write-Host '✅ viewer-sikulix is already available .'
92
+ Write-Host '✅ viewer-automation folder is provided .'
97
93
98
94
- name : Fetch & Download Installer Artifact (Windows)
99
95
if : matrix.os == 'windows'
@@ -217,15 +213,27 @@ jobs:
217
213
python "${{ matrix.install-path }}\runTests.py"
218
214
219
215
# Mac-specific steps
220
- - name : Verify viewer-sikulix-main Exists (Mac)
216
+ - name : Set Build ID (Mac)
217
+ if : matrix.os == 'mac'
218
+ shell : bash
219
+ run : |
220
+ if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
221
+ echo "BUILD_ID=${{ github.event.inputs.build_id }}" >> $GITHUB_ENV
222
+ echo "ARTIFACTS_URL=https://api.github.com/repos/secondlife/viewer/actions/runs/${{ github.event.inputs.build_id }}/artifacts" >> $GITHUB_ENV
223
+ else
224
+ echo "BUILD_ID=${{ github.event.workflow_run.id }}" >> $GITHUB_ENV
225
+ echo "ARTIFACTS_URL=https://api.github.com/repos/secondlife/viewer/actions/runs/${{ github.event.workflow_run.id }}/artifacts" >> $GITHUB_ENV
226
+ fi
227
+
228
+ - name : Verify viewer-automation-main Exists (Mac)
221
229
if : matrix.os == 'mac'
222
230
shell : bash
223
231
run : |
224
232
if [ ! -d "${{ matrix.install-path }}" ]; then
225
- echo "❌ Error: viewer-sikulix not found on runner!"
233
+ echo "❌ Error: viewer-automation folder not found on runner!"
226
234
exit 1
227
235
fi
228
- echo "✅ viewer-sikulix is already available ."
236
+ echo "✅ viewer-automation is provided ."
229
237
230
238
- name : Fetch & Download Installer Artifact (Mac)
231
239
if : matrix.os == 'mac'
0 commit comments