mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-21 07:36:42 +00:00
29 lines
728 B
YAML
29 lines
728 B
YAML
# @url https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions
|
|
name: Lint Frontend
|
|
|
|
on:
|
|
push:
|
|
branches: [ main, ci ]
|
|
paths:
|
|
- '.github/workflows/**'
|
|
- 'static/**'
|
|
pull_request:
|
|
branches: [ main, ci ]
|
|
|
|
jobs:
|
|
lint:
|
|
name: Lint with stylelint and ESLint.
|
|
runs-on: ubuntu-20.04
|
|
|
|
steps:
|
|
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Install modules
|
|
run: yarn
|
|
|
|
- name: Run stylelint
|
|
run: yarn stylelint **/static/**/*.css --report-needless-disables --report-invalid-scope-disables
|
|
|
|
- name: Run ESLint
|
|
run: yarn eslint . --ext .js,.jsx,.ts,.tsx
|