-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7bcd36b
commit 61f602a
Showing
1 changed file
with
3 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,15 +15,12 @@ jobs: | |
with: | ||
node-version-file: ".nvmrc" | ||
|
||
- name: Install Cucumber | ||
- name: Install Test Dependencies | ||
run: npm i @cucumber/[email protected] @playwright/[email protected] | ||
|
||
- name: Install Playwright | ||
run: npx playwright install --with-deps | ||
|
||
- name: Install Dependencies | ||
run: npm i | ||
|
||
- name: Build app | ||
run: NODE_ENV=test npm run build | ||
|
||
|
@@ -35,11 +32,11 @@ jobs: | |
run: | | ||
RETRIES=6 | ||
until curl --output /dev/null --silent --head --fail http://localhost:3000 || [ $((RETRIES--)) -eq 0 ]; do | ||
echo "Waiting for server..." | ||
echo "Waiting for http://localhost:3000" | ||
sleep 5 | ||
done | ||
if [ $RETRIES -lt 0 ]; then | ||
echo "Server failed to start within the timeout period." | ||
echo "Failed to connect to http://localhost:3000" | ||
exit 1 | ||
fi | ||
shell: bash | ||
|