Skip to content

Commit 5912763

Browse files
authored
Create lint.yml
1 parent eb8fc38 commit 5912763

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/lint.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Lint
2+
3+
on: push
4+
5+
jobs:
6+
run-linters:
7+
name: Run linters
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Check out Git repository
12+
uses: actions/checkout@v2
13+
14+
- name: Read .nvmrc
15+
run: echo "##[set-output name=NVMRC;]$(cat .nvmrc)"
16+
id: nvm
17+
18+
- name: Use Node.js ${{ steps.nvm.outputs.NVMRC }}
19+
uses: actions/setup-node@v1
20+
with:
21+
node-version: "${{ steps.nvm.outputs.NVMRC }}"
22+
23+
- run: npm ci
24+
25+
- name: Run linters
26+
uses: samuelmeuli/lint-action@v1
27+
with:
28+
github_token: ${{ secrets.github_token }}
29+
# Enable your linters here
30+
eslint: true

0 commit comments

Comments
 (0)