Skip to content

Commit

Permalink
initial workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Felioh committed Apr 3, 2024
1 parent 1c5d7e8 commit 93652ea
Show file tree
Hide file tree
Showing 5 changed files with 118 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .devcontainer/backend/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"customizations": {
"vscode": {
"extensions": [
"mongodb.mongodb-vscode"
"mongodb.mongodb-vscode",
"github.vscode-github-actions"
]
}
},
Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/codestyle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Code Style Check

on: [push, pull_request]

permissions:
actions: read
contents: read
security-events: write

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20.11.1'
- name: Install pnpm
uses: pnpm/action-setup@v3
with:
version: '8.15.4'
run_install: false

- name: Install dependencies
run: pnpm install

- name: Lint
run: pnpm run lint
59 changes: 59 additions & 0 deletions eslint-report.sarif
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@

/workspace/dist/apps/auth/src/auth.controller.d.ts
 0:0 error Parsing error: ESLint was configured to run on `<tsconfigRootDir>/dist/apps/auth/src/auth.controller.d.ts` using `parserOptions.project`: <tsconfigRootDir>/tsconfig.json
However, that TSConfig does not include this file. Either:
- Change ESLint's list of included files to not include this file
- Change that TSConfig to include this file
- Create a new TSConfig that includes this file and include it in your parserOptions.project
See the typescript-eslint docs for more info: https://typescript-eslint.io/linting/troubleshooting#i-get-errors-telling-me-eslint-was-configured-to-run--however-that-tsconfig-does-not--none-of-those-tsconfigs-include-this-file

/workspace/dist/apps/auth/src/auth.module.d.ts
 0:0 error Parsing error: ESLint was configured to run on `<tsconfigRootDir>/dist/apps/auth/src/auth.module.d.ts` using `parserOptions.project`: <tsconfigRootDir>/tsconfig.json
However, that TSConfig does not include this file. Either:
- Change ESLint's list of included files to not include this file
- Change that TSConfig to include this file
- Create a new TSConfig that includes this file and include it in your parserOptions.project
See the typescript-eslint docs for more info: https://typescript-eslint.io/linting/troubleshooting#i-get-errors-telling-me-eslint-was-configured-to-run--however-that-tsconfig-does-not--none-of-those-tsconfigs-include-this-file

/workspace/dist/apps/auth/src/auth.service.d.ts
 0:0 error Parsing error: ESLint was configured to run on `<tsconfigRootDir>/dist/apps/auth/src/auth.service.d.ts` using `parserOptions.project`: <tsconfigRootDir>/tsconfig.json
However, that TSConfig does not include this file. Either:
- Change ESLint's list of included files to not include this file
- Change that TSConfig to include this file
- Create a new TSConfig that includes this file and include it in your parserOptions.project
See the typescript-eslint docs for more info: https://typescript-eslint.io/linting/troubleshooting#i-get-errors-telling-me-eslint-was-configured-to-run--however-that-tsconfig-does-not--none-of-those-tsconfigs-include-this-file

/workspace/dist/apps/auth/src/main.d.ts
 0:0 error Parsing error: ESLint was configured to run on `<tsconfigRootDir>/dist/apps/auth/src/main.d.ts` using `parserOptions.project`: <tsconfigRootDir>/tsconfig.json
However, that TSConfig does not include this file. Either:
- Change ESLint's list of included files to not include this file
- Change that TSConfig to include this file
- Create a new TSConfig that includes this file and include it in your parserOptions.project
See the typescript-eslint docs for more info: https://typescript-eslint.io/linting/troubleshooting#i-get-errors-telling-me-eslint-was-configured-to-run--however-that-tsconfig-does-not--none-of-those-tsconfigs-include-this-file

/workspace/dist/libs/common/src/common.module.d.ts
 0:0 error Parsing error: ESLint was configured to run on `<tsconfigRootDir>/dist/libs/common/src/common.module.d.ts` using `parserOptions.project`: <tsconfigRootDir>/tsconfig.json
However, that TSConfig does not include this file. Either:
- Change ESLint's list of included files to not include this file
- Change that TSConfig to include this file
- Create a new TSConfig that includes this file and include it in your parserOptions.project
See the typescript-eslint docs for more info: https://typescript-eslint.io/linting/troubleshooting#i-get-errors-telling-me-eslint-was-configured-to-run--however-that-tsconfig-does-not--none-of-those-tsconfigs-include-this-file

/workspace/dist/libs/common/src/common.service.d.ts
 0:0 error Parsing error: ESLint was configured to run on `<tsconfigRootDir>/dist/libs/common/src/common.service.d.ts` using `parserOptions.project`: <tsconfigRootDir>/tsconfig.json
However, that TSConfig does not include this file. Either:
- Change ESLint's list of included files to not include this file
- Change that TSConfig to include this file
- Create a new TSConfig that includes this file and include it in your parserOptions.project
See the typescript-eslint docs for more info: https://typescript-eslint.io/linting/troubleshooting#i-get-errors-telling-me-eslint-was-configured-to-run--however-that-tsconfig-does-not--none-of-those-tsconfigs-include-this-file

/workspace/dist/libs/common/src/index.d.ts
 0:0 error Parsing error: ESLint was configured to run on `<tsconfigRootDir>/dist/libs/common/src/index.d.ts` using `parserOptions.project`: <tsconfigRootDir>/tsconfig.json
However, that TSConfig does not include this file. Either:
- Change ESLint's list of included files to not include this file
- Change that TSConfig to include this file
- Create a new TSConfig that includes this file and include it in your parserOptions.project
See the typescript-eslint docs for more info: https://typescript-eslint.io/linting/troubleshooting#i-get-errors-telling-me-eslint-was-configured-to-run--however-that-tsconfig-does-not--none-of-those-tsconfigs-include-this-file

✖ 7 problems (7 errors, 0 warnings)

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"rxjs": "^7.8.1"
},
"devDependencies": {
"@microsoft/eslint-formatter-sarif": "^3.0.0",
"@nestjs/cli": "^10.0.0",
"@nestjs/schematics": "^10.0.0",
"@nestjs/testing": "^10.0.0",
Expand Down
24 changes: 24 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 93652ea

Please sign in to comment.