moviewyrm/.github/workflows/prettier.yaml

24 lines
574 B
YAML
Raw Normal View History

2021-12-16 18:47:22 +00:00
# @url https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions
name: JavaScript Prettier (run ./bw-dev prettier to fix)
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
lint:
name: Lint with Prettier
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
2022-02-15 20:25:35 +00:00
run: npm install dev-tools
2021-12-16 18:47:22 +00:00
- name: Run Prettier
run: npx prettier --check bookwyrm/static/js/*.js