mirror of
https://github.com/steveiliop56/tinyauth.git
synced 2026-07-17 23:41:11 +00:00
chore: add sslip to hosts
This commit is contained in:
@@ -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
@@ -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": "",
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user