2021-02-04 23:52:18 -08:00
|
|
|
name: linter
|
|
|
|
|
|
|
|
# This action works with pull requests and pushes
|
2021-04-20 23:51:48 -07:00
|
|
|
on: [push, pull_request]
|
2021-04-19 23:12:35 -07:00
|
|
|
|
2021-02-04 23:52:18 -08:00
|
|
|
jobs:
|
2021-04-20 23:51:48 -07:00
|
|
|
format:
|
2021-04-23 08:49:19 -07:00
|
|
|
if: ${{ github.actor != 'dependabot[bot]' }}
|
2021-03-14 11:31:03 -07:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
2021-09-21 13:52:06 -07:00
|
|
|
ref: ${{ github.ref }}
|
2021-07-05 17:45:28 -07:00
|
|
|
fetch-depth: 0
|
2021-03-27 17:58:44 -07:00
|
|
|
|
|
|
|
- name: Linter
|
2022-02-11 14:11:26 -08:00
|
|
|
uses: tj-actions/eslint-changed-files@v9
|
2021-03-27 17:58:44 -07:00
|
|
|
with:
|
2021-10-13 19:26:12 -07:00
|
|
|
config_path: '.eslintrc.js'
|
2021-11-02 17:06:46 -07:00
|
|
|
ignore_path: '.eslintignore'
|
2022-02-18 13:05:37 -08:00
|
|
|
file_extensions: |
|
|
|
|
**/*.ts
|
|
|
|
**/*.tsx
|
|
|
|
**/*.js
|
|
|
|
**/*.jsx
|