mirror of
https://github.com/Screenly/Anthias.git
synced 2026-04-24 08:32:08 -04:00
43 lines
820 B
YAML
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
|