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
|
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
@@ -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": "",
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user