30 lines
715 B
YAML
30 lines
715 B
YAML
name: Lint
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- "**" # matches every branch
|
|
- "!dev" # excludes dev
|
|
- "!main" # excludes main
|
|
|
|
jobs:
|
|
eslint:
|
|
name: Lint
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
|
|
|
|
- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4
|
|
with:
|
|
node-version: 20
|
|
cache: "npm"
|
|
- run: npm i
|
|
- uses: sibiraj-s/action-eslint@bcf41bb9abce43cdbad51ab9b3da2eddaa17eab3 # v3.0.1
|
|
with:
|
|
eslint-args: "--ignore-path=.gitignore --quiet"
|
|
extensions: "js,jsx,ts,tsx"
|
|
annotations: true
|
|
all-files: true
|