[ci] Add prettier to CI
Diff
package.json | 2 +-
.github/workflows/action.yml | 15 +++++++++------
2 files changed, 9 insertions(+), 8 deletions(-)
@@ -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>",
@@ -1,16 +1,17 @@
on: push
name: Main Workflow
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