|
65 | 65 | # Used as the explorer-automation tests-ref. metaforge falls back to main |
66 | 66 | # if the branch doesn't exist on explorer-automation's origin. |
67 | 67 | TEST_REF: ${{ github.event.pull_request.head.ref || github.ref_name }} |
68 | | - TESTS_REF: ${{ github.event.pull_request.head.ref || github.ref_name }} |
| 68 | + # TEMPORARY (smoke-test): the explorer-automation visual setup lives on |
| 69 | + # feat/snapshots-comparison (PR #2) until merged to main. Once that PR |
| 70 | + # lands, switch this back to ${{ github.event.pull_request.head.ref }} |
| 71 | + # so per-branch test pairing works for real PRs. |
| 72 | + TESTS_REF: feat/snapshots-comparison |
69 | 73 | PR_NUMBER: ${{ github.event.pull_request.number }} |
70 | 74 | # TEMPORARY (workflow smoke-test): hardcoded direct URL of a known-green |
71 | 75 | # Unity Cloud Build for this branch, so we don't block on the in-progress |
@@ -122,6 +126,12 @@ jobs: |
122 | 126 | xattr -dr com.apple.quarantine /Applications/AltTesterDesktop.app || true |
123 | 127 | ls /Applications/AltTesterDesktop.app/Contents/MacOS/AltTesterDesktop |
124 | 128 |
|
| 129 | + # Allure CLI: metaforge generates the HTML report with it after each |
| 130 | + # run. Pre-install globally so `mf explorer test --non-interactive` |
| 131 | + # doesn't hit the "install allure?" prompt. |
| 132 | + npm install -g allure-commandline |
| 133 | + allure --version |
| 134 | +
|
125 | 135 | gh --version |
126 | 136 |
|
127 | 137 | - name: Verify MetaForge access |
@@ -155,8 +165,15 @@ jobs: |
155 | 165 |
|
156 | 166 | - name: Configure AltTester license |
157 | 167 | env: |
158 | | - ALTTESTER_LICENSE: ${{ secrets.ALTTESTER_LICENSE }} |
159 | | - run: mf alttester set-license "$ALTTESTER_LICENSE" |
| 168 | + # NB: secret name uses British spelling (LICENCE) — set by devops. |
| 169 | + ALTTESTER_LICENSE: ${{ secrets.ALTTESTER_LICENCE }} |
| 170 | + run: | |
| 171 | + set -euo pipefail |
| 172 | + if [ -z "${ALTTESTER_LICENSE:-}" ]; then |
| 173 | + echo "::error::Missing ALTTESTER_LICENCE secret. Add it under repo Settings → Secrets → Actions." |
| 174 | + exit 1 |
| 175 | + fi |
| 176 | + mf alttester set-license "$ALTTESTER_LICENSE" |
160 | 177 |
|
161 | 178 | - name: Pre-install Explorer build |
162 | 179 | env: |
@@ -196,9 +213,16 @@ jobs: |
196 | 213 | # Surface metaforge logs at info level so failures are diagnosable |
197 | 214 | # without needing to download artifacts. |
198 | 215 | MF_LOG_LEVEL: info |
| 216 | + # metaforge clones explorer-automation via `gh repo clone`, which |
| 217 | + # needs GH_TOKEN to authenticate against the private repo. |
| 218 | + GH_TOKEN: ${{ secrets.REPOS_READ_ONLY_TOKEN }} |
199 | 219 | run: | |
200 | 220 | set -euo pipefail |
201 | | - mf explorer server start |
| 221 | + # Pass --tests-ref to both commands so the managed clone of |
| 222 | + # explorer-automation lands on the right branch up front. |
| 223 | + # `server start` is what triggers the clone + _host build; if it |
| 224 | + # defaults to main, the scenes/ workspace may be missing. |
| 225 | + mf explorer server start --tests-ref "${TESTS_REF}" |
202 | 226 | # Smoke-test: same direct URL as the install step above. Once |
203 | 227 | # validated, swap back to `"${TEST_REF}"` for per-SHA resolution. |
204 | 228 | mf explorer test "${BUILD_URL}" \ |
|
0 commit comments