forked from extern/easydiffusion
Print the diff
This commit is contained in:
parent
50fdc32ff8
commit
1b40a6baa3
19
.github/workflows/prettier.yml
vendored
19
.github/workflows/prettier.yml
vendored
@ -10,9 +10,18 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Check out repo
|
- name: Check out repo
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- uses: actionsx/prettier@v2
|
- uses: actions/cache@v2
|
||||||
|
name: Configure npm caching
|
||||||
with:
|
with:
|
||||||
# prettier CLI arguments.
|
path: ~/.npm
|
||||||
args: --write "./**/*.js"
|
key: ${{ runner.os }}-npm-${{ hashFiles('**/workflows/prettier.yml') }}
|
||||||
- name: Get Diff
|
restore-keys: |
|
||||||
run: git diff
|
${{ runner.os }}-npm-
|
||||||
|
- name: Run prettier
|
||||||
|
run: |-
|
||||||
|
npm run prettier-write
|
||||||
|
- name: Print the diff
|
||||||
|
run: git diff; git reset --hard
|
||||||
|
- name: Run prettier
|
||||||
|
run: |-
|
||||||
|
npm run prettier-check
|
Loading…
Reference in New Issue
Block a user