Skip to content

Commit

Permalink
chore: add lint to pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielSchiavini committed Oct 16, 2024
1 parent 8c42768 commit 8ac5e04
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
15 changes: 15 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Lint
on:
push:

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '20'
- run: npm install
- run: npm run build
- run: npm run lint
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"url": "https://github.com/curvefi/curve-lending-js/issues"
},
"scripts": {
"build": "rm -rf lib && tsc -p tsconfig.build.json"
"build": "rm -rf lib && tsc -p tsconfig.build.json",
"lint": "eslint src --ext .ts"
},
"type": "module",
"devDependencies": {
Expand Down

0 comments on commit 8ac5e04

Please sign in to comment.