mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2024-12-01 04:34:04 +01:00
22 lines
512 B
YAML
22 lines
512 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: actions/cache@v2
|
|
name: Configure npm caching
|
|
with:
|
|
path: ~/.npm
|
|
key: ${{ runner.os }}-npm-${{ hashFiles('**/workflows/prettier.yml') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-npm-
|
|
- name: Run prettier
|
|
run: |-
|
|
npx prettier --check "./**/*.js" ui |