chore: add sslip to hosts

This commit is contained in:
Stavros
2026-07-16 18:36:41 +03:00
parent 4eeede6bcb
commit 90ff78b3b8
3 changed files with 7 additions and 4 deletions
+3
View File
@@ -31,6 +31,9 @@ jobs:
run: pnpm exec playwright install --with-deps
working-directory: e2e
- name: Add sslip domains to hosts file
run: echo "127.0.0.1 tinyauth.127.0.0.1.sslip.io whoami.127.0.0.1.sslip.io" | sudo tee -a /etc/hosts
- name: Run Playwright tests
run: pnpm exec playwright test
working-directory: e2e
+3 -3
View File
@@ -5,10 +5,10 @@
"main": "index.js",
"scripts": {
"down": "docker compose -f docker-compose.e2e.yml down",
"up": "docker compose -f docker-compose.e2e.yml up --build --force-recreate --remove-orphans -d",
"up": "docker compose -f docker-compose.e2e.yml up --build --force-recreate --remove-orphans",
"logs": "docker compose -f docker-compose.e2e.yml logs -f",
"test": "playwright test",
"report": "playwright show-report",
"netcheck": "cat /etc/resolv.conf && curl http://tinyauth.127.0.0.1.sslip.io/api/healthz && curl localhost"
"report": "playwright show-report"
},
"keywords": [],
"author": "",
+1 -1
View File
@@ -35,7 +35,7 @@ export default defineConfig({
},
],
webServer: {
command: 'pnpm run up && pnpm run netcheck',
command: 'pnpm run up',
url: 'http://tinyauth.127.0.0.1.sslip.io/api/healthz',
reuseExistingServer: true,
timeout: 5 * 60 * 1000,