Skip to content
This repository was archived by the owner on Feb 9, 2023. It is now read-only.

Commit 5aa3b35

Browse files
committed
Remove 'pretest' script and add lint to CI
1 parent 7f4932a commit 5aa3b35

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

.github/workflows/nodejs.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,33 @@ env:
1313
CI: true
1414

1515
jobs:
16+
lint:
17+
name: Lint on Node.js ${{ matrix.node }} and ${{ matrix.os }}
18+
19+
runs-on: ${{ matrix.os }}
20+
21+
strategy:
22+
matrix:
23+
node: [12]
24+
os: [ubuntu-latest]
25+
26+
steps:
27+
- uses: actions/checkout@v2
28+
29+
- name: Use Node.js ${{ matrix.node }}
30+
uses: actions/setup-node@v1
31+
with:
32+
node-version: ${{ matrix.node }}
33+
34+
- name: Install latest npm
35+
run: npm install --global npm@latest
36+
37+
- name: Install dependencies
38+
run: npm ci
39+
40+
- name: Lint
41+
run: npm run lint
42+
1643
test:
1744
name: Test on Node.js ${{ matrix.node }}
1845

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
"lint:formatting": "prettier . --check",
4141
"lint:js": "eslint .",
4242
"lint": "npm-run-all --parallel lint:*",
43-
"pretest": "npm run lint",
4443
"mocha": "mocha --no-timeouts",
4544
"test": "nyc npm run mocha",
4645
"watch": "mocha --watch",

0 commit comments

Comments
 (0)