fix(ci): Add lint step
All checks were successful
build (current)
All checks were successful
build (current)
This commit is contained in:
parent
deca58fb4c
commit
98b59feb92
2 changed files with 6 additions and 1 deletions
6
.github/workflows/test.yml
vendored
6
.github/workflows/test.yml
vendored
|
@ -1,4 +1,4 @@
|
|||
name: pnpm Example Workflow
|
||||
name: Build
|
||||
on:
|
||||
- push
|
||||
- pull_request
|
||||
|
@ -12,6 +12,8 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: pnpm/action-setup@v2
|
||||
with:
|
||||
version: 8
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
|
@ -19,5 +21,7 @@ jobs:
|
|||
cache: 'pnpm'
|
||||
- name: Install dependencies
|
||||
run: pnpm install
|
||||
- name: Lint
|
||||
run: pnpm lint:ci
|
||||
- name: Build
|
||||
run: pnpm build
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
"build": "tsc -b",
|
||||
"clean": "tsc -b --clean",
|
||||
"lint": "eslint --ext .ts ./src --fix && prettier --write ./src",
|
||||
"lint:ci": "eslint --ext .ts ./src && prettier --check ./src",
|
||||
"dev": "nodemon --exec node --loader ts-node/esm src/index.ts",
|
||||
"start": "node ./dist/index.js"
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue