29 lines
540 B
YAML
29 lines
540 B
YAML
name: Lint
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- 'src/scripts/**'
|
|
|
|
jobs:
|
|
eslint:
|
|
name: ESLint
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
with:
|
|
fetch-depth: 1
|
|
|
|
- uses: actions/setup-node@v1
|
|
with:
|
|
node-version: 10
|
|
|
|
- name: Install dependencies
|
|
run: npm install --no-optional --no-audit --ignore-scripts
|
|
env:
|
|
CYPRESS_INSTALL_BINARY: 0
|
|
HUSKY_SKIP_INSTALL: true
|
|
|
|
- name: run eslint
|
|
run: npx eslint src/scripts
|