Added eslint action

This commit is contained in:
Alex Corn 2021-07-29 03:05:54 -04:00
parent 600a41143b
commit 9ec329569f
No known key found for this signature in database
GPG Key ID: E51989A3E7A27FDF

32
.github/workflows/eslint.yml vendored Normal file
View File

@ -0,0 +1,32 @@
name: ESLint
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [8.x]
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: npm install
working-directory: .
run: npm install --ignore-scripts
- name: Run ESLint
uses: ninosaurus/eslint-check@v5
with:
eslint-config-path: "./.eslintrc.js"
custom-directory: "."
repo-token: ${{secrets.GITHUB_TOKEN}}