-
Notifications
You must be signed in to change notification settings - Fork 355
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Infrastructure: Swap to GitHub Action for JS linting (pull #1501)
Allows lint errors to show as inline comments on PRs.
- Loading branch information
Showing
2 changed files
with
36 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: JavaScript Linting | ||
on: | ||
push: | ||
paths: | ||
- "package*.json" | ||
- ".eslint*" | ||
- "**/*.js" | ||
- ".github/workflows/lint-js.yml" | ||
- "!common/**" | ||
|
||
pull_request: | ||
paths: | ||
- "package*.json" | ||
- ".eslint*" | ||
- "**/*.js" | ||
- ".github/workflows/lint-js.yml" | ||
- "!common/**" | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Clone repository | ||
uses: actions/checkout@v2 | ||
|
||
# setup-node task is used without a particular version in order to load | ||
# the ESLint problem matchers | ||
- name: Set up Node.js | ||
uses: actions/setup-node@v1 | ||
|
||
- name: Install npm dependencies | ||
run: npm ci | ||
|
||
- name: ESLint | ||
run: npm run lint:es |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters