1
0
forked from baron/baron-sso

fix(ci): use npx playwright and fix adminfront scripts for reliable binary resolution in CI

This commit is contained in:
2026-05-15 13:59:51 +09:00
parent eff21aaa82
commit 16422f4e2e
3 changed files with 25 additions and 25 deletions

View File

@@ -335,7 +335,7 @@ jobs:
id: playwright-version
run: |
cd userfront-e2e
echo "version=$(pnpm list -C ../common @playwright/test --depth 0 | grep @playwright/test | awk -F@ '{print $NF}')" >> "$GITHUB_OUTPUT"
echo "version=$(npm list @playwright/test | grep @playwright/test | awk -F@ '{print $NF}')" >> "$GITHUB_OUTPUT"
- name: Cache Playwright Browsers
uses: actions/cache@v4
@@ -420,7 +420,7 @@ jobs:
run: |
set +e
cd userfront-e2e
../common/node_modules/.bin/playwright install --with-deps chromium 2>&1 | tee ../reports/userfront-e2e-provision.log
npx playwright install --with-deps chromium 2>&1 | tee ../reports/userfront-e2e-provision.log
provision_exit_code=${PIPESTATUS[0]}
cd ..
set -e
@@ -435,7 +435,7 @@ jobs:
echo "- Exit Code: \`$provision_exit_code\`"
echo
echo "## Command"
echo "\`cd userfront-e2e && ../common/node_modules/.bin/playwright install --with-deps chromium\`"
echo "\`cd userfront-e2e && npx playwright install --with-deps chromium\`"
echo
echo "## Provision Log Tail (last 200 lines)"
echo '```text'
@@ -450,7 +450,7 @@ jobs:
mkdir -p reports
set +e
cd userfront-e2e
pnpm run test 2>&1 | tee ../reports/userfront-e2e-test.log
npm test 2>&1 | tee ../reports/userfront-e2e-test.log
test_exit_code=${PIPESTATUS[0]}
cd ..
set -e
@@ -467,8 +467,8 @@ jobs:
echo "1. \`cd userfront-e2e\`"
echo "2. \`npm ci\`"
echo "3. \`cd ../userfront && flutter build web --wasm --release\`"
echo "4. \`cd ../userfront-e2e && ../common/node_modules/.bin/playwright install --with-deps chromium\`"
echo "5. \`pnpm run test\`"
echo "4. \`cd ../userfront-e2e && npx playwright install --with-deps chromium\`"
echo "5. \`npm test\`"
echo
echo "## Log Tail (last 200 lines)"
echo '```text'
@@ -703,7 +703,7 @@ jobs:
run: |
set +e
cd devfront
../common/node_modules/.bin/playwright install --with-deps 2>&1 | tee ../reports/devfront-provision.log
npx playwright install --with-deps 2>&1 | tee ../reports/devfront-provision.log
provision_exit_code=${PIPESTATUS[0]}
cd ..
set -e
@@ -718,7 +718,7 @@ jobs:
echo "- Exit Code: \`$provision_exit_code\`"
echo
echo "## Command"
echo "\`cd devfront && ../common/node_modules/.bin/playwright install --with-deps\`"
echo "\`cd devfront && npx playwright install --with-deps\`"
echo
echo "## Provision Log Tail (last 200 lines)"
echo '```text'
@@ -751,7 +751,7 @@ jobs:
echo "## Commands"
echo "1. \`cd devfront\`"
echo "2. \`npm ci\`"
echo "3. \`../common/node_modules/.bin/playwright install --with-deps\`"
echo "3. \`npx playwright install --with-deps\`"
echo "4. \`pnpm run test\`"
echo
echo "## Log Tail (last 200 lines)"
@@ -885,7 +885,7 @@ jobs:
run: |
set +e
cd orgfront
../common/node_modules/.bin/playwright install --with-deps 2>&1 | tee ../reports/orgfront-provision.log
npx playwright install --with-deps 2>&1 | tee ../reports/orgfront-provision.log
provision_exit_code=${PIPESTATUS[0]}
cd ..
set -e
@@ -900,7 +900,7 @@ jobs:
echo "- Exit Code: \`$provision_exit_code\`"
echo
echo "## Command"
echo "\`cd orgfront && ../common/node_modules/.bin/playwright install --with-deps\`"
echo "\`cd orgfront && npx playwright install --with-deps\`"
echo
echo "## Provision Log Tail (last 200 lines)"
echo '```text'
@@ -933,7 +933,7 @@ jobs:
echo "## Commands"
echo "1. \`cd orgfront\`"
echo "2. \`npm ci\`"
echo "3. \`../common/node_modules/.bin/playwright install --with-deps\`"
echo "3. \`npx playwright install --with-deps\`"
echo "4. \`pnpm run test\`"
echo
echo "## Log Tail (last 200 lines)"