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
|
2021-07-19 22:02:02 -07:00
|
|
|
uses: tj-actions/eslint-changed-files@v6.5
|
2021-03-27 17:58:44 -07:00
|
|
|
with:
|
|
|
|
config-path: '.eslintrc.js'
|
|
|
|
ignore-path: '.eslintignore'
|
|
|
|
extensions: 'ts,tsx,js,jsx'
|