forked from baron/baron-sso
fix(ci): use pnpm instead of npm to run playwright tests
This commit is contained in:
@@ -450,7 +450,7 @@ jobs:
|
|||||||
mkdir -p reports
|
mkdir -p reports
|
||||||
set +e
|
set +e
|
||||||
cd userfront-e2e
|
cd userfront-e2e
|
||||||
npm test 2>&1 | tee ../reports/userfront-e2e-test.log
|
pnpm run test 2>&1 | tee ../reports/userfront-e2e-test.log
|
||||||
test_exit_code=${PIPESTATUS[0]}
|
test_exit_code=${PIPESTATUS[0]}
|
||||||
cd ..
|
cd ..
|
||||||
set -e
|
set -e
|
||||||
@@ -468,7 +468,7 @@ jobs:
|
|||||||
echo "2. \`npm ci\`"
|
echo "2. \`npm ci\`"
|
||||||
echo "3. \`cd ../userfront && flutter build web --wasm --release\`"
|
echo "3. \`cd ../userfront && flutter build web --wasm --release\`"
|
||||||
echo "4. \`cd ../userfront-e2e && npx playwright install --with-deps chromium\`"
|
echo "4. \`cd ../userfront-e2e && npx playwright install --with-deps chromium\`"
|
||||||
echo "5. \`npm test\`"
|
echo "5. \`pnpm run test\`"
|
||||||
echo
|
echo
|
||||||
echo "## Log Tail (last 200 lines)"
|
echo "## Log Tail (last 200 lines)"
|
||||||
echo '```text'
|
echo '```text'
|
||||||
@@ -735,7 +735,7 @@ jobs:
|
|||||||
mkdir -p reports
|
mkdir -p reports
|
||||||
set +e
|
set +e
|
||||||
cd devfront
|
cd devfront
|
||||||
npm test 2>&1 | tee ../reports/devfront-test.log
|
pnpm run test 2>&1 | tee ../reports/devfront-test.log
|
||||||
test_exit_code=${PIPESTATUS[0]}
|
test_exit_code=${PIPESTATUS[0]}
|
||||||
cd ..
|
cd ..
|
||||||
set -e
|
set -e
|
||||||
@@ -752,7 +752,7 @@ jobs:
|
|||||||
echo "1. \`cd devfront\`"
|
echo "1. \`cd devfront\`"
|
||||||
echo "2. \`npm ci\`"
|
echo "2. \`npm ci\`"
|
||||||
echo "3. \`npx playwright install --with-deps\`"
|
echo "3. \`npx playwright install --with-deps\`"
|
||||||
echo "4. \`npm test\`"
|
echo "4. \`pnpm run test\`"
|
||||||
echo
|
echo
|
||||||
echo "## Log Tail (last 200 lines)"
|
echo "## Log Tail (last 200 lines)"
|
||||||
echo '```text'
|
echo '```text'
|
||||||
@@ -917,7 +917,7 @@ jobs:
|
|||||||
mkdir -p reports
|
mkdir -p reports
|
||||||
set +e
|
set +e
|
||||||
cd orgfront
|
cd orgfront
|
||||||
npm test 2>&1 | tee ../reports/orgfront-test.log
|
pnpm run test 2>&1 | tee ../reports/orgfront-test.log
|
||||||
test_exit_code=${PIPESTATUS[0]}
|
test_exit_code=${PIPESTATUS[0]}
|
||||||
cd ..
|
cd ..
|
||||||
set -e
|
set -e
|
||||||
@@ -934,7 +934,7 @@ jobs:
|
|||||||
echo "1. \`cd orgfront\`"
|
echo "1. \`cd orgfront\`"
|
||||||
echo "2. \`npm ci\`"
|
echo "2. \`npm ci\`"
|
||||||
echo "3. \`npx playwright install --with-deps\`"
|
echo "3. \`npx playwright install --with-deps\`"
|
||||||
echo "4. \`npm test\`"
|
echo "4. \`pnpm run test\`"
|
||||||
echo
|
echo
|
||||||
echo "## Log Tail (last 200 lines)"
|
echo "## Log Tail (last 200 lines)"
|
||||||
echo '```text'
|
echo '```text'
|
||||||
|
|||||||
Reference in New Issue
Block a user