Fix linter workflow?
This commit is contained in:
29
web/.github/workflows/linter.yml
vendored
29
web/.github/workflows/linter.yml
vendored
@@ -4,24 +4,15 @@ name: linter
|
|||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
format:
|
run-test:
|
||||||
if: ${{ github.actor != 'dependabot[bot]' }}
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
name: Run linter on changed files
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
|
||||||
ref: ${{ github.ref }}
|
- name: Install Dependencies
|
||||||
fetch-depth: 0
|
run: npm install
|
||||||
|
|
||||||
- name: Linter
|
- name: Lint
|
||||||
uses: tj-actions/eslint-changed-files@v9
|
run: npm run lint
|
||||||
with:
|
|
||||||
config_path: '.eslintrc.js'
|
|
||||||
ignore_path: '.eslintignore'
|
|
||||||
file_extensions: |
|
|
||||||
**/*.ts
|
|
||||||
**/*.tsx
|
|
||||||
**/*.js
|
|
||||||
**/*.jsx
|
|
||||||
|
|||||||
Reference in New Issue
Block a user