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 run: pnpm exec playwright install --with-deps
working-directory: e2e 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 - name: Run Playwright tests
run: pnpm exec playwright test run: pnpm exec playwright test
working-directory: e2e working-directory: e2e
+3 -3
View File
@@ -5,10 +5,10 @@
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"down": "docker compose -f docker-compose.e2e.yml down", "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", "test": "playwright test",
"report": "playwright show-report", "report": "playwright show-report"
"netcheck": "cat /etc/resolv.conf && curl http://tinyauth.127.0.0.1.sslip.io/api/healthz && curl localhost"
}, },
"keywords": [], "keywords": [],
"author": "", "author": "",
+1 -1
View File
@@ -35,7 +35,7 @@ export default defineConfig({
}, },
], ],
webServer: { webServer: {
command: 'pnpm run up && pnpm run netcheck', command: 'pnpm run up',
url: 'http://tinyauth.127.0.0.1.sslip.io/api/healthz', url: 'http://tinyauth.127.0.0.1.sslip.io/api/healthz',
reuseExistingServer: true, reuseExistingServer: true,
timeout: 5 * 60 * 1000, timeout: 5 * 60 * 1000,