[ci] Add prettier to CI
This commit is contained in:
parent
9cc3cd4228
commit
44e68fc140
|
@ -4,13 +4,14 @@ jobs:
|
||||||
tests:
|
tests:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
node: ['16', '14', '12']
|
node: ["16", "14", "12"]
|
||||||
name: Run NPM Stuff
|
name: Run NPM Stuff
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
- uses: actions/setup-node@v2
|
- uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: ${{matrix.node}}
|
node-version: ${{matrix.node}}
|
||||||
- run: npm install
|
- run: npm install
|
||||||
- run: npm test
|
- run: npm run lint
|
||||||
|
- run: npm run test
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "mocha",
|
"test": "mocha",
|
||||||
"lint": "prettier --check ."
|
"lint": "prettier --check *.js src/*.js test/*.js"
|
||||||
},
|
},
|
||||||
"bin": "index.js",
|
"bin": "index.js",
|
||||||
"author": "Nemo <npm@captnemo.in>",
|
"author": "Nemo <npm@captnemo.in>",
|
||||||
|
|
Loading…
Reference in New Issue