Skip to content

Commit a68f39b

Browse files
committed
Fix Prisma in CI and add linting to server CI
1 parent ad36bb4 commit a68f39b

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
working-directory: ${{ matrix.component }}
3232

3333
- name: Generate Prisma Types from Schema
34-
run: pnpx prisma generate
34+
run: pnpm prisma generate
3535
if: ${{ matrix.component == 'server' }}
3636
working-directory: server
3737

@@ -40,6 +40,12 @@ jobs:
4040
if: ${{ matrix.component == 'server' }}
4141
working-directory: server
4242

43+
- name: Lint
44+
run: pnpm run lint
45+
# Only running in server currently - need to fix more linting issues in client first
46+
if: ${{ matrix.component == 'server' }}
47+
working-directory: ${{ matrix.component }}
48+
4349
- name: Build
4450
run: pnpm run build
4551
working-directory: ${{ matrix.component }}

server/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,14 @@
1212
"start:dev": "nest start --watch",
1313
"start:debug": "nest start --debug --watch",
1414
"start:prod": "node dist/main",
15-
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
15+
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --ignore-pattern src/generated",
16+
"lint:fix": "eslint --fix \"{src,apps,libs,test}/**/*.ts\" --ignore-pattern src/generated",
1617
"test": "jest",
1718
"test:watch": "jest --watch",
1819
"test:cov": "jest --coverage",
1920
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
2021
"test:e2e": "jest --config ./test/jest-e2e.json",
22+
"prisma": "prisma",
2123
"graphql": "graphql-codegen --config codegen.ts"
2224
},
2325
"dependencies": {

server/src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ async function bootstrap() {
3232

3333
await app.listen(configService.get('port') ?? 3001);
3434
}
35-
bootstrap();
35+
void bootstrap();

0 commit comments

Comments
 (0)