Skip to content

Commit 3c853b8

Browse files
authored
Infrastructure: Swap to GitHub Action for JS linting (pull #1501)
Allows lint errors to show as inline comments on PRs.
1 parent 8f0b40b commit 3c853b8

File tree

2 files changed

+36
-3
lines changed

2 files changed

+36
-3
lines changed

.github/workflows/lint-js.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: JavaScript Linting
2+
on:
3+
push:
4+
paths:
5+
- "package*.json"
6+
- ".eslint*"
7+
- "**/*.js"
8+
- ".github/workflows/lint-js.yml"
9+
- "!common/**"
10+
11+
pull_request:
12+
paths:
13+
- "package*.json"
14+
- ".eslint*"
15+
- "**/*.js"
16+
- ".github/workflows/lint-js.yml"
17+
- "!common/**"
18+
19+
jobs:
20+
lint:
21+
runs-on: ubuntu-latest
22+
23+
steps:
24+
- name: Clone repository
25+
uses: actions/checkout@v2
26+
27+
# setup-node task is used without a particular version in order to load
28+
# the ESLint problem matchers
29+
- name: Set up Node.js
30+
uses: actions/setup-node@v1
31+
32+
- name: Install npm dependencies
33+
run: npm ci
34+
35+
- name: ESLint
36+
run: npm run lint:es

.travis.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ jobs:
1515
- env: ALLOW_FAILURE=true
1616

1717
include:
18-
- stage: Lint
19-
name: JS Linting
20-
script: npm run lint:es
2118
- stage: Lint
2219
name: HTML Linting
2320
script: npm run vnu-jar

0 commit comments

Comments
 (0)