Add github action to test initializing zero-config server
This commit is contained in:
parent
c21051b1a3
commit
39a80d1d14
|
@ -14,5 +14,7 @@ jobs:
|
|||
run: npm ci
|
||||
- name: Run pwa test build
|
||||
run: npm run pwa:build
|
||||
- name: Test starting zero-config server
|
||||
run: npm run server:start-dry
|
||||
- name: Run tests
|
||||
run: npm test
|
||||
|
|
|
@ -25,7 +25,8 @@
|
|||
"bootstrap": "lerna bootstrap",
|
||||
"pwa:build": "lerna run build --scope @padloc/pwa",
|
||||
"pwa:start": "lerna run start --scope @padloc/pwa",
|
||||
"server:start": "lerna run start --scope @padloc/server",
|
||||
"server:start": "lerna run start --scope @padloc/server --stream",
|
||||
"server:start-dry": "lerna run start-dry --stream --scope @padloc/server",
|
||||
"electron:build": "cd packages/electron && npm run build && cd ../..",
|
||||
"start": "npm run pwa:build && lerna run --scope '@padloc/{server,pwa}' --parallel start",
|
||||
"dev": "lerna run --parallel --scope '@padloc/{server,pwa}' --parallel dev",
|
||||
|
|
|
@ -45,6 +45,7 @@
|
|||
},
|
||||
"scripts": {
|
||||
"start": "ts-node src/init.ts",
|
||||
"start-dry": "ts-node src/init.ts --dryrun",
|
||||
"repl": "ts-node src/init-repl-client.ts",
|
||||
"dev": "ts-node-dev src/init.ts",
|
||||
"dev-inspect": "node -r ts-node/register --inspect-brk --stack-trace-limit=1000 src/init.ts",
|
||||
|
|
|
@ -252,7 +252,6 @@ async function init(config: PadlocConfig) {
|
|||
// Skip starting listener if --dryrun flag is present
|
||||
if (process.argv.includes("--dryrun")) {
|
||||
process.exit(0);
|
||||
return;
|
||||
}
|
||||
|
||||
console.log(`Starting server on port ${config.transport.http.port}`);
|
||||
|
|
Loading…
Reference in New Issue