mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-25 19:11:09 +00:00
Adds github workflow
This commit is contained in:
parent
2fa1aa4cc7
commit
34a16667d8
1 changed files with 24 additions and 0 deletions
24
.github/workflows/prettier.yaml
vendored
Normal file
24
.github/workflows/prettier.yaml
vendored
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
# @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
|
||||||
|
run: npm install .
|
||||||
|
|
||||||
|
# See .stylelintignore for files that are not linted.
|
||||||
|
- name: Run Prettier
|
||||||
|
run: npx prettier --check bookwyrm/static/js/*.js
|
Loading…
Reference in a new issue