Skip to content

Commit 07677ab

Browse files
committed
Run linter on GitHub Actions
1 parent 1c4c996 commit 07677ab

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/continuous-integration.yml

+23
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,26 @@ jobs:
3838
COVERALLS_SERVICE_NAME: github
3939
COVERALLS_SERVICE_NUMBER: ${{ github.run_id }}
4040
CI_PULL_REQUEST: ${{ github.event.number }}
41+
42+
lint:
43+
name: "Linter"
44+
runs-on: ubuntu-latest
45+
steps:
46+
47+
- uses: actions/checkout@v2
48+
49+
- uses: actions/cache@v2
50+
with:
51+
path: ~/.npm
52+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
53+
restore-keys: |
54+
${{ runner.os }}-node-
55+
56+
- name: Setup node
57+
uses: actions/setup-node@v2
58+
with:
59+
node-version: 14
60+
61+
- run: npm ci
62+
63+
- run: npm run lint

0 commit comments

Comments
 (0)