Skip to content

Commit e3924a4

Browse files
ci: setup CI
1 parent 3b155c2 commit e3924a4

21 files changed

+83
-353
lines changed

.eslintrc.json

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@
66
"jest": true
77
},
88
"parser": "@typescript-eslint/parser",
9-
"parserOptions": {
10-
"project": "example-app/tsconfig.json",
11-
"sourceType": "module"
12-
},
139
"plugins": [
1410
"@typescript-eslint",
1511
"prefer-arrow",
@@ -21,7 +17,6 @@
2117
"eslint:recommended",
2218
"plugin:@typescript-eslint/eslint-recommended",
2319
"plugin:@typescript-eslint/recommended",
24-
"plugin:@typescript-eslint/recommended-requiring-type-checking",
2520
"plugin:jest/recommended"
2621
],
2722
"settings": {
@@ -174,7 +169,6 @@
174169
"error",
175170
"always-multiline"
176171
],
177-
"@typescript-eslint/prefer-readonly": "error",
178172
"prefer-arrow/prefer-arrow-functions": "error",
179173
"spaced-comment": [
180174
"error",
@@ -202,6 +196,22 @@
202196
"@typescript-eslint/unbound-method": "off",
203197
"@typescript-eslint/explicit-function-return-type": "off"
204198
}
199+
},
200+
{
201+
"files": [
202+
"**/*.js"
203+
],
204+
"rules": {
205+
"spaced-comment": "off"
206+
}
207+
},
208+
{
209+
"files": [
210+
"*/cypress/**/*.spec.ts"
211+
],
212+
"rules": {
213+
"jest/expect-expect": "off"
214+
}
205215
}
206216
]
207217
}

.github/workflows/push.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@ jobs:
55
name: test
66
runs-on: ubuntu-latest
77
steps:
8-
- name: Dump GitHub context
9-
env:
10-
GITHUB_CONTEXT: ${{ toJson(github) }}
11-
run: echo "$GITHUB_CONTEXT"
128
- name: Checkout
139
uses: actions/checkout@v2
1410
- name: Setup

example-app/README.md

Lines changed: 0 additions & 75 deletions
This file was deleted.

example-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"@nestjs/schematics": "^6.6.6",
3939
"@nestjs/testing": "^6.7.1",
4040
"@types/express": "^4.17.1",
41-
"@types/jest": "^24.0.18",
41+
"@types/jest": "^26.0.9",
4242
"@types/mongoose": "^5.7.36",
4343
"@types/node": "^12.7.5",
4444
"@types/supertest": "^2.0.8",

example-app/src/app.controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export class AppController {
88
constructor(private readonly appService: AppService) {}
99

1010
@Get()
11-
getHello(): string {
11+
public getHello(): string {
1212
return this.appService.getHello();
1313
}
1414
}

example-app/src/app.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Module } from '@nestjs/common';
22
import { MongooseModule, getModelToken } from '@nestjs/mongoose';
3-
import mongoose, { Model } from 'mongoose';
3+
import { Model } from 'mongoose';
44

55
import { AdminModule } from '../../src/index';
66

example-app/src/app.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Injectable } from '@nestjs/common';
22

33
@Injectable()
44
export class AppService {
5-
getHello(): string {
5+
public getHello(): string {
66
return 'Hello World!';
77
}
88
}

example-app/src/index.js

Lines changed: 0 additions & 22 deletions
This file was deleted.

example-app/src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { AppModule } from './app.module';
66

77
AdminBro.registerAdapter(AdminBroMongoose);
88

9-
async function bootstrap() {
9+
const bootstrap = async () => {
1010
const app = await NestFactory.create(AppModule);
1111
await app.listen(3000);
1212
}

example-app/src/mongoose/article-model.js

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)