Fix CI build/deploy/smoke pipeline for the self-hosted qa runner #3

Merged
wamplerj merged 21 commits from build-runner-fix into main 2026-07-04 18:53:05 -07:00
Showing only changes of commit aeb4f03627 - Show all commits

View File

@@ -29,9 +29,19 @@ dotnet test tests/api/MicCheck.Api.Tests.Integration/MicCheck.Api.Tests.Integrat
log "Installing admin e2e dependencies"
npm --prefix src/admin ci
npm --prefix src/admin run e2e:install
log "Running Playwright admin e2e suite against $BASE_URL"
E2E_BASE_URL="$BASE_URL" npm --prefix src/admin run e2e
# Playwright's bundled Chromium is a glibc binary and `--with-deps` only knows
# apt - neither works on this musl/Alpine runner. Run the e2e leg inside
# Microsoft's official Playwright image instead (glibc, browsers preinstalled
# at /ms-playwright), as a sibling container reachable at the same bridge
# gateway IP used above. Pin the image tag to the exact resolved
# @playwright/test version so the test runner and browser build match.
PW_VERSION="$(node -p "require('./src/admin/node_modules/@playwright/test/package.json').version")"
log "Running Playwright admin e2e suite against $BASE_URL (playwright:v$PW_VERSION-noble)"
docker run --rm \
-e "E2E_BASE_URL=$BASE_URL" \
-v "$CI_ROOT:/work" -w /work/src/admin \
"mcr.microsoft.com/playwright:v${PW_VERSION}-noble" \
npx playwright test
log "smoke-qa.sh complete - QA environment validated end to end"