ci: run browser quality on native Windows (#2)
This commit was merged in pull request #2.
This commit is contained in:
@@ -11,14 +11,17 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Secret scan
|
||||
uses: trufflesecurity/trufflehog@v3.79.0
|
||||
with:
|
||||
path: ./
|
||||
extra_args: --only-verified
|
||||
shell: bash
|
||||
run: |
|
||||
set -euo pipefail
|
||||
scan_container="$(docker create ghcr.io/trufflesecurity/trufflehog:3.79.0 filesystem /scan --only-verified --fail --no-update)"
|
||||
trap 'docker rm -f "${scan_container}" >/dev/null 2>&1 || true' EXIT
|
||||
tar --exclude=.git --transform='s#^\.$#scan#;s#^\./#scan/#' -cf - . | docker cp - "${scan_container}:/"
|
||||
docker start -a "${scan_container}"
|
||||
|
||||
quality:
|
||||
# Node, Playwright and the browser gate are supported by the shared Linux pool.
|
||||
runs-on: ubuntu-latest
|
||||
# Browser quality runs against the dedicated bounded Windows 11 VM runner.
|
||||
runs-on: windows-native
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
@@ -27,7 +30,7 @@ jobs:
|
||||
cache: npm
|
||||
- run: npm ci
|
||||
- run: npm run quality
|
||||
- run: npx playwright install --with-deps chromium
|
||||
- run: npx playwright install chromium
|
||||
- run: npm run test:browser:ci
|
||||
- name: Preserve browser failure evidence
|
||||
if: failure()
|
||||
|
||||
Reference in New Issue
Block a user