Skip to content

Commit

Permalink
Another approach
Browse files Browse the repository at this point in the history
  • Loading branch information
gastongaiduk committed Dec 18, 2024
1 parent c44ec39 commit cea000b
Showing 1 changed file with 17 additions and 21 deletions.
38 changes: 17 additions & 21 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,30 +13,26 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

- name: Install dependencies
run: npm install
# - name: Install dependencies
# run: npm install

- name: Start Vite server
run: npm run dev &
env:
CI: true
# - name: Start Vite server
# run: npm run dev &
# env:
# CI: true

- name: Wait for Vite server
run: |
for i in {1..10}; do
if curl -s http://localhost:5173/retroleaderboards/; then
echo "Vite server is up!"
break
fi
echo "Waiting for Vite server..."
sleep 2
done
# - name: Wait for Vite server
# run: |
# for i in {1..10}; do
# if curl -s http://localhost:5173/retroleaderboards/; then
# echo "Vite server is up!"
# break
# fi
# echo "Waiting for Vite server..."
# sleep 2
# done

- name: Run Cypress tests
uses: cypress-io/github-action@v6
with:
browser: chrome
headless: true
wait-on: 'http://localhost:5173/retroleaderboards'
env:
VITE_ENCRYPTION_KEY: '1234567890_KEY'
env: VITE_ENCRYPTION_KEY=1234567890_KEY

0 comments on commit cea000b

Please sign in to comment.