bookwyrm/.github/workflows/linters-frontend.yaml

31 lines
667 B
YAML
Raw Normal View History

# @url https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions
name: Frontend Linters
on:
push:
branches: [ main, ci ]
paths:
- 'static/**'
pull_request:
branches: [ main, ci ]
jobs:
linters:
name: linters
runs-on: ubuntu-20.04
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: stylelinter
uses: actions-hub/stylelint@v1.1.3
env:
PATTERN: "*.css"
- name: Run ESLint
uses: stefanoeb/eslint-action@1.0.2
with:
files:
- 'bookwyrm/static/js/**'