diff --git a/.github/workflows/lint-js.yml b/.github/workflows/lint-js.yml new file mode 100644 index 0000000000..7360b337e8 --- /dev/null +++ b/.github/workflows/lint-js.yml @@ -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 diff --git a/.travis.yml b/.travis.yml index dabc99bfdf..df0ce7d247 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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