* constrain auto-close and enforce-dependency-review triggers we don't need to run these on PR close or when we apply labels, for example * skip workflows on push to dependabot branch * use PAT if available else fall back to workflow token * further constrain pull_request triggers Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
29 lines
559 B
YAML
29 lines
559 B
YAML
name: Lint
|
|
on:
|
|
pull_request:
|
|
types: [opened, edited, reopened, synchronize]
|
|
push:
|
|
branches-ignore:
|
|
- 'gh-pages'
|
|
- 'dependabot/**'
|
|
|
|
jobs:
|
|
test-lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Setup
|
|
uses: ./.github/actions/setup
|
|
with:
|
|
node-version: 16
|
|
|
|
- name: ESLint
|
|
if: always()
|
|
run: npm run lint
|
|
|
|
- name: 'Prettier check (quick fix: `npm run prettier`)'
|
|
if: always()
|
|
run: npm run prettier:check
|