Skip to content

Commit

Permalink
ci: add server prod
Browse files Browse the repository at this point in the history
  • Loading branch information
ccamensuli committed Jun 13, 2024
1 parent 92e8f70 commit 64df196
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
node-version: [18.x, 20.x, 21.x]
node-version: [18.x, 20.x, 22.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v3
Expand All @@ -27,6 +27,7 @@ jobs:
cache: "npm"
- run: npm ci --force
- run: npm run build --if-present
- run: npx nodefony prod
- run: npm test

build-osx:
Expand All @@ -35,7 +36,7 @@ jobs:
fail-fast: false
matrix:
os: [macOS-latest]
node-version: [18.x, 20.x, 21.x]
node-version: [18.x, 20.x, 22.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v3
Expand All @@ -46,6 +47,7 @@ jobs:
cache: "npm"
- run: npm ci --force
- run: npm run build --if-present
- run: npx nodefony prod
- run: npm test

build-windows:
Expand All @@ -54,7 +56,7 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest]
node-version: [18.x, 20.x, 21.x]
node-version: [18.x, 20.x, 22.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v3
Expand All @@ -66,4 +68,5 @@ jobs:
- run: npm cache clean --force
- run: npm ci --force
- run: npm run build --if-present
- run: npx nodefony prod
- run: npm test
7 changes: 2 additions & 5 deletions src/nodefony/src/kernel/Kernel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,11 +214,7 @@ class Kernel extends Service {
//this.babel = (await this.addKernelService(Babylon)) as Babylon;
await this.addKernelService(Rollup);
await this.addKernelService(Watcher);
this.pm2 = (await this.addKernelService(
Pm2,
this,
this.options.pm2
)) as Pm2;

if (!this.started) {
await this.fireAsync("onPreStart", this).catch((e) => {
this.log(e, "CRITIC");
Expand All @@ -237,6 +233,7 @@ class Kernel extends Service {
if (this.app) {
this.projectName = this.app.getModuleName() as string;
}
this.pm2 = (await this.addKernelService(Pm2, this.options.pm2)) as Pm2;
//parse command
// if (this.cli && !this.command) {
// this.cli.clear();
Expand Down

0 comments on commit 64df196

Please sign in to comment.