Files
Anthias/.github/workflows/javascript-lint.yaml
2026-03-23 15:49:18 -07:00

43 lines
820 B
YAML

name: Run JavaScript Linter and Formatter
on:
push:
branches: [ master ]
paths:
- '**/*.js'
- '**/*.jsx'
- '**/*.ts'
- '**/*.tsx'
- '**/*.mjs'
- '.github/workflows/javascript-lint.yaml'
pull_request:
branches: [ master ]
paths:
- '**/*.js'
- '**/*.jsx'
- '**/*.ts'
- '**/*.tsx'
- '**/*.mjs'
- '.github/workflows/javascript-lint.yaml'
jobs:
lint:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run ESLint
run: npm run lint:check
- name: Run Prettier
run: npm run format:check