Skip to content
This repository has been archived by the owner on Dec 2, 2024. It is now read-only.

Commit

Permalink
feat: added browsertesting script
Browse files Browse the repository at this point in the history
  • Loading branch information
taciturnaxolotl committed Dec 30, 2023
1 parent 9380efe commit 3ba0dbd
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
28 changes: 28 additions & 0 deletions .github/scripts/run-browser-testing.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/bin/bash

# run next server
npm run dev &
APP_PID=$!

echo $APP_PID

echo "next lunching 3000..."

# wait till the server starts
while ! nc -z localhost 3000; do
sleep 0.1
done

echo "run pupperteer browser testing..."
node scripts/browser-test.js

# exit if pupperteer script failed
RESULT=$?
if [ $RESULT -eq 0 ]; then
echo pupperteer success
else
echo pupperteer failed
fi

# end server process
# kill $APP_PID
4 changes: 2 additions & 2 deletions .github/workflows/browsertesting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ jobs:
id: browser-testing

run: |
chmod +x run-browser-testing.sh
./run-browser-testing.sh
chmod +x .github/scripts/run-browser-testing.sh
./.github/scripts/run-browser-testing.sh
- name: Use the value
id: step_two
Expand Down

0 comments on commit 3ba0dbd

Please sign in to comment.