mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-23 16:40:36 +00:00
23 lines
573 B
YAML
23 lines
573 B
YAML
# @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@v3
|
|
|
|
- name: Install modules
|
|
run: npm install prettier
|
|
|
|
- name: Run Prettier
|
|
run: npx prettier --check bookwyrm/static/js/*.js
|