add prettier and lint check to ci flow
This commit is contained in:
parent
20f3e7209c
commit
2feb8740e8
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
@ -21,6 +21,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
|
- run: npm run format -- --list-different
|
||||||
|
- run: npm run lint
|
||||||
- run: npm run build
|
- run: npm run build
|
||||||
- run: npm run test:cov
|
- run: npm run test:cov
|
||||||
- run: bash <(curl -s https://codecov.io/bash)
|
- run: bash <(curl -s https://codecov.io/bash)
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
"prebuild": "rimraf lib",
|
"prebuild": "rimraf lib",
|
||||||
"build": "tsc",
|
"build": "tsc",
|
||||||
"format": "prettier --write \"src/**/*.ts\"",
|
"format": "prettier --write \"src/**/*.ts\"",
|
||||||
"lint": "eslint \"src/**/*.ts\" --fix",
|
"lint": "eslint -c .eslintrc.json --ext .ts --max-warnings 0 src",
|
||||||
"test": "jest",
|
"test": "jest",
|
||||||
"test:watch": "jest --watch",
|
"test:watch": "jest --watch",
|
||||||
"test:cov": "jest --coverage",
|
"test:cov": "jest --coverage",
|
||||||
|
Loading…
Reference in New Issue
Block a user