mirror of
https://github.com/Screenly/Anthias.git
synced 2025-12-23 22:38:05 -05:00
35 lines
687 B
YAML
35 lines
687 B
YAML
name: Run JavaScript and CoffeeScript Linter
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
paths:
|
|
- '**/*.js'
|
|
- '**/*.coffee'
|
|
- '**/*.mjs'
|
|
- '.github/workflows/javascript-lint.yaml'
|
|
pull_request:
|
|
branches: [ master ]
|
|
paths:
|
|
- '**/*.js'
|
|
- '**/*.coffee'
|
|
- '**/*.mjs'
|
|
- '.github/workflows/javascript-lint.yaml'
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '20'
|
|
cache: 'npm'
|
|
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
|
|
- name: Run ESLint
|
|
run: npm run lint |