Skip to content

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
name: "Lint JS files using eslint"
on:
push:
pull_request_target:
types: [ opened, reopened ]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: '16'
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Run ESLint and generate SARIF output
run: yarn lint:report | exit 0
- name: Upload SARIF output
uses: github/codeql-action/upload-sarif@v1
with:
sarif_file: eslint-results.sarif
wait-for-processing: true