Skip to content

Commit

Permalink
🚑 fix workflow error
Browse files Browse the repository at this point in the history
  • Loading branch information
ileostar committed Jul 12, 2024
1 parent fb2a1bf commit 5c828d6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test
name: CI

on:
push:
Expand Down
8 changes: 8 additions & 0 deletions apps/server/test/app.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { INestApplication } from '@nestjs/common';
import * as request from 'supertest';
import { AppModule } from '../src/app/app.module';
import { DocumentBuilder, SwaggerModule } from '@nestjs/swagger';
import { appGlobalMiddleware } from 'src/app/useGlobal';

describe('AppController (e2e)', () => {
let app: INestApplication;
Expand All @@ -13,6 +14,13 @@ describe('AppController (e2e)', () => {
}).compile();

app = moduleFixture.createNestApplication();
app.enableCors({
origin: [
/^http:\/\/localhost(:\d+)?$/,
/^http:\/\/poster-craft\.leostar\.top(:81)?$/,
],
});
appGlobalMiddleware(app);
const config = new DocumentBuilder()
.setTitle('PosterCraft Swagger')
.setDescription('The PosterCraft API description')
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"homepage": "https://github.com/ileostar/PosterCraft",
"engines": {
"node": ">=20.12.2"
"node": ">=20"
},
"scripts": {
"schema:build": "pnpm -F @poster-craft/schema build",
Expand Down

0 comments on commit 5c828d6

Please sign in to comment.