Skip to content

Commit

Permalink
chore: Swap to GitHub Action for JS linting
Browse files Browse the repository at this point in the history
Allows for inline comments on PRs for issues
  • Loading branch information
nschonni committed Sep 25, 2020
1 parent 8f0b40b commit 83d45da
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 3 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/lint-js.yml
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
3 changes: 0 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ jobs:
- env: ALLOW_FAILURE=true

include:
- stage: Lint
name: JS Linting
script: npm run lint:es
- stage: Lint
name: HTML Linting
script: npm run vnu-jar
Expand Down

0 comments on commit 83d45da

Please sign in to comment.