From 44e68fc14003f2f0fb1dbe8501da3618d81b923d Mon Sep 17 00:00:00 2001 From: Nemo Date: Thu, 29 Jul 2021 11:22:35 +0530 Subject: [PATCH] [ci] Add prettier to CI --- .github/workflows/action.yml | 15 ++++++++------- package.json | 2 +- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml index 0a3c917..a3c340e 100644 --- a/.github/workflows/action.yml +++ b/.github/workflows/action.yml @@ -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 diff --git a/package.json b/package.json index d7d8504..ca15e29 100644 --- a/package.json +++ b/package.json @@ -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 ",