bookwyrm/.github/workflows/linters-frontend.yaml
Workflow config file is invalid. Please check your config file: yaml: unmarshal errors: line 30: cannot unmarshal !!seq into string
Fabien Basmaison 53f03457cc Add linter for JS files with basic recommended rules:
- Add Github Action.
- Fix JS files to match rules; mostly `globals` and `exported`.
2021-03-31 17:07:28 +02:00

30 lines
667 B
YAML

# @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/**'