mirror of
https://github.com/fosrl/pangolin.git
synced 2026-01-29 06:10:47 +00:00
34 lines
759 B
YAML
34 lines
759 B
YAML
name: ESLint
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- '**/*.js'
|
|
- '**/*.jsx'
|
|
- '**/*.ts'
|
|
- '**/*.tsx'
|
|
- '.eslintrc*'
|
|
- 'package.json'
|
|
- 'yarn.lock'
|
|
- 'pnpm-lock.yaml'
|
|
- 'package-lock.json'
|
|
|
|
jobs:
|
|
Linter:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '20'
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
npm ci
|
|
|
|
- name: Run ESLint
|
|
run: |
|
|
npx eslint . --ext .js,.jsx,.ts,.tsx |