Skip to content

Commit 5f740e0

Browse files
committed
add js linter
1 parent 4de6a5e commit 5f740e0

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/lint.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Lint
2+
3+
on:
4+
# Trigger the workflow on push or pull request,
5+
# but only for the main branch
6+
push:
7+
branches:
8+
- master
9+
pull_request:
10+
branches:
11+
- master
12+
13+
jobs:
14+
run-linters:
15+
name: Run linters
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- name: Check out Git repository
20+
uses: actions/checkout@v3
21+
22+
- name: Set up Node.js
23+
uses: actions/setup-node@v1
24+
with:
25+
node-version: 12
26+
27+
# ESLint and Prettier must be in `package.json`
28+
- name: Install Node.js dependencies
29+
run: npm ci
30+
31+
- name: Run linters
32+
uses: wearerequired/lint-action@v2
33+
with:
34+
eslint: true
35+
prettier: true

0 commit comments

Comments
 (0)