24 lines
463 B
YAML
24 lines
463 B
YAML
name: Linters
|
|
on: [workflow_call]
|
|
|
|
defaults:
|
|
run:
|
|
shell: 'bash'
|
|
|
|
jobs:
|
|
eslint:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 16 # Need for npm >=7.7
|
|
cache: 'npm'
|
|
|
|
# TODO: Install not all dependencies, but only those required for this workflow
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
|
|
- run: npm run lint --if-present
|