Skip to content

Commit 5b930bc

Browse files
committed
ci: prettier
1 parent 7ae5c7f commit 5b930bc

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/code_health.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,23 @@ jobs:
3636
echo "Try running: npm run build"
3737
exit 1
3838
fi
39+
prettier:
40+
name: Prettier Check
41+
runs-on: ubuntu-latest
42+
steps:
43+
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
44+
with:
45+
config: ${{ vars.PERMISSIONS_CONFIG }}
46+
- name: Checkout Repository
47+
uses: actions/checkout@v2
48+
- name: Run Prettier
49+
id: prettier-run
50+
uses: rutajdash/[email protected]
51+
with:
52+
config_path: ./.prettierrc.yml
53+
- name: Prettier Output
54+
if: ${{ failure() }}
55+
shell: bash
56+
run: |
57+
echo "The following files are not formatted:"
58+
echo "${{steps.prettier-run.outputs.prettier_output}}"

0 commit comments

Comments
 (0)