Skip to content

Commit

Permalink
add linting check in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
arturcic committed Jul 10, 2024
1 parent 46b399b commit fa62f1c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .azure/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,12 @@ jobs:
fetchDepth: '0'
- pwsh: |
npm install
displayName: 'Install dependencies'
- pwsh: |
npm run lint
npm run format-check
displayName: 'Check code formatting'
- pwsh: |
npm run build:tools
npm run build:agent:github
npm run build:agent:azure
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,12 @@ jobs:
fetch-depth: 0
- run: |
npm install
name: Install dependencies
- run: |
npm run lint
npm run format-check
name: Check code formatting
- run: |
npm run build:tools
npm run build:agent:github
npm run build:agent:azure
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"test": "run-p test:tools test:agents",
"lint": "eslint --ext .ts src",
"lint-fix": "eslint --ext .ts src --fix",
"format": "prettier --write 'src/**/*.ts'",
"format-check": "prettier --check 'src/**/*.ts'",
"format": "prettier --write \"src/**/*.ts\"",
"format-check": "prettier --check \"src/**/*.ts\"",

"build:tools": "vite build --config src/tools/vite.config.mts",
"build:agents": "run-p build:agent:local build:agent:azure build:agent:github",
Expand Down

0 comments on commit fa62f1c

Please sign in to comment.