easydiffusion/.github/workflows/prettier.yml
2023-04-29 07:40:24 +05:30

20 lines
497 B
YAML

name: Check JavaScript for conformance with Prettier
on:
push:
pull_request:
jobs:
prettier:
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v2
- uses: actionsx/prettier@v2
with:
# prettier CLI arguments.
args: --print-width 120 --tab-width 4 --no-semi --arrow-parens always --trailing-comma es5 --write "./**/*.js"
- uses: technote-space/get-diff-action@v6
with:
PATTERNS: |
+(ui)/**/*.js