Skip to content

Commit db364bf

Browse files
committed
Migrate to Playwright
1 parent 63ab929 commit db364bf

8 files changed

+130
-877
lines changed

.github/workflows/continuous-integration-workflow.yml

+5
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,11 @@ jobs:
7676
- name: Checkout
7777
uses: actions/checkout@v4
7878

79+
- name: Setup Node.js
80+
uses: actions/setup-node@v4
81+
with:
82+
node-version: lts/*
83+
7984
- name: Build
8085
run: ./build.sh
8186
env:

test.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,11 @@ for version in "${meteor_versions[@]}"; do
7171
done
7272

7373
echo 'Running test...'
74+
cd ../test
7475
if [ ! -d ../test/node_modules ]; then
75-
cd ../test
7676
run_with_suppressed_output 'npm ci'
77-
cd ../example
7877
fi
79-
run_with_suppressed_output 'node ../test/test.js' || true # Don’t exit if tests fail
78+
run_with_suppressed_output 'node --run test' || true # Don’t exit if tests fail
8079
elapsed="$((($SECONDS / 60) % 60)) min $(($SECONDS % 60)) sec"
8180
if [ $exit_code -ne 0 ]; then
8281
# For 14.21.4 <= $node_version < 18.0.0, we need to use the Meteor fork of the Node Docker image; else, we use the regular official Node Docker image
@@ -96,6 +95,7 @@ for version in "${meteor_versions[@]}"; do
9695
fi
9796

9897
if [ "${SKIP_CLEANUP:-}" != 1 ]; then
98+
cd ../example
9999
run_with_suppressed_output 'docker compose --file test.compose.yml down'
100100
run_with_suppressed_output 'docker rmi example-app:latest'
101101

test/.gitignore

+6
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
11
node_modules/
22
screenshot.png
3+
4+
# Playwright
5+
/test-results/
6+
/playwright-report/
7+
/blob-report/
8+
/playwright/.cache/

0 commit comments

Comments
 (0)