Skip to content

Commit

Permalink
Tests adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
gastongaiduk committed Dec 18, 2024
1 parent e129431 commit 12296f8
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 16 deletions.
28 changes: 13 additions & 15 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,28 @@ on:
types: [ opened, synchronize, reopened ]

jobs:
build:
cypress-run:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'

- name: Install dependencies
run: npm install

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

- name: Cypress run
uses: cypress-io/github-action@v6
- name: Wait for Vite server to start
uses: jakejarvis/wait-action@v1
with:
url: 'http://localhost:5173/retroleaderboards'
timeout: 60

# - name: Run Cypress tests
# env:
# BASE_URL: http://localhost:5173/retroleaderboards
# run: npm run cy:run
- name: Run Cypress tests
uses: cypress-io/github-action@v6
with:
browser: chrome
2 changes: 1 addition & 1 deletion cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { defineConfig } from "cypress";

export default defineConfig({
e2e: {
baseUrl: process.env.BASE_URL || 'http://localhost:5173/retroleaderboards',
baseUrl: 'http://localhost:5173/retroleaderboards',
setupNodeEvents(on, config) {
// implement node event listeners here
},
Expand Down
4 changes: 4 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,8 @@ 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 12296f8

Please sign in to comment.