[ci] Add prettier to CI

pull/76/head
Nemo 1 year ago
parent 9cc3cd4228
commit 44e68fc140
  1. 15
      .github/workflows/action.yml
  2. 2
      package.json

@ -4,13 +4,14 @@ jobs:
tests:
strategy:
matrix:
node: ['16', '14', '12']
node: ["16", "14", "12"]
name: Run NPM Stuff
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v2
with:
node-version: ${{matrix.node}}
- run: npm install
- run: npm test
- uses: actions/checkout@v1
- uses: actions/setup-node@v2
with:
node-version: ${{matrix.node}}
- run: npm install
- run: npm run lint
- run: npm run test

@ -5,7 +5,7 @@
"main": "index.js",
"scripts": {
"test": "mocha",
"lint": "prettier --check ."
"lint": "prettier --check *.js src/*.js test/*.js"
},
"bin": "index.js",
"author": "Nemo <npm@captnemo.in>",

Loading…
Cancel
Save