diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d30e22c..a44793d 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -45,9 +45,8 @@ jobs: - name: cypress uses: cypress-io/github-action@v5 with: - start: npm run e2e, npm run preview + start: npm run e2e command: npm run cy-ci - wait-on: http://localhost:8080 # - name: SonarCloud Scan # uses: SonarSource/sonarcloud-github-action@master # env: diff --git a/package.json b/package.json index 104acea..fe7a04c 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "e2e": "NODE_OPTIONS=--dns-result-order=ipv4first c8 -o ./coverage-cypress -r=text -r=lcov node ./e2e-backend.mjs", "e2e-dev": "nodemon --watch ext --watch src --exec ./e2e-backend.mjs", "cy": "HTTP_PROXY=http://localhost:8000 cypress open --component", - "cy-ci": "HTTP_PROXY=http://localhost:8000 cypress run --e2e", + "cy-ci": "HTTP_PROXY=http://localhost:8000 cypress run --component", "lint": "eslint src/**/*.mjs", "format": "prettier --write ./src", "shutdown": "curl localhost:9000/shutdown", diff --git a/vite.config.mjs b/vite.config.mjs index 9569a1e..9e5b94a 100644 --- a/vite.config.mjs +++ b/vite.config.mjs @@ -15,6 +15,9 @@ export default defineConfig({ }, }, }, + devServer: { + host: true, + }, preview: { port: '8080', },