Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Infrastructure: Switch ESLint to use GitHub Actions #1501

Merged
merged 1 commit into from
Sep 29, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wow this file is so easy to understand.

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