-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 981 Bytes
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Tests
on:
workflow_dispatch:
pull_request:
types: [ opened, synchronize, reopened ]
jobs:
cypress_run:
runs-on: ubuntu-24.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Cypress run
uses: cypress-io/github-action@v6
with:
start: npm run dev:expose
env: VITE_ENCRYPTION_KEY=1234567890_KEY
# - name: Install dependencies
# run: npm install
# - name: Start Vite server
# run: npm run dev &
# env:
# VITE_ENCRYPTION_KEY: 1234567890_KEY
# - 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
# run: npm run cy:run