Skip to content

Commit

Permalink
modify action
Browse files Browse the repository at this point in the history
  • Loading branch information
joneugster committed Aug 23, 2024
1 parent b41d04a commit 6abab4e
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ jobs:
echo "Starting server..."
nohup npm run start > nohup.out 2> nohup.err < /dev/null &
echo "server is running."
- name: Sleep
run: sleep 5
run-cypress:
runs-on: windows-latest
needs: start-server
Expand All @@ -53,18 +51,16 @@ jobs:
with:
submodules: true
- uses: actions/setup-node@v4

- name: Install dependencies
run: npm install
- name: Wait for server
run: |
echo "Pinging the server to check if it's up..."
for i in {1..30}; do
curl -sSf http://localhost:5173 && break
echo "Waiting for server..."
sleep 5
done
# - name: Wait for server
# run: |
# echo "Pinging the server to check if it's up..."
# for i in {1..30}; do
# curl -sSf http://localhost:5173 && break
# echo "Waiting for server..."
# sleep 5
# done
- name: Run Cypress tests
run: |
wait-on http://localhost:5173
Expand Down

0 comments on commit 6abab4e

Please sign in to comment.