Skip to content

Commit

Permalink
Let's try this one
Browse files Browse the repository at this point in the history
  • Loading branch information
gastongaiduk committed Dec 18, 2024
1 parent f715af0 commit 428fdf6
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 12 deletions.
35 changes: 27 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,32 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

- name: Install dependencies
run: npm install
- name: Cypress run
uses: cypress-io/github-action@v6
with:
start: npm run dev --host
wait-on: 'http://localhost:5173/retroleaderboards'
env:
VITE_ENCRYPTION_KEY: 1234567890_KEY

- name: Start Vite server
run: npm run dev &
env:
VITE_ENCRYPTION_KEY: 1234567890_KEY
# - name: Install dependencies
# run: npm install

- name: Run Cypress tests
run: npm run cy:run
# - 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
4 changes: 0 additions & 4 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,4 @@ import vue from '@vitejs/plugin-vue'
export default defineConfig({
base: '/retroleaderboards/',
plugins: [vue()],
server: {
host: '0.0.0.0',
port: 5173,
},
})

0 comments on commit 428fdf6

Please sign in to comment.