Skip to content

Commit

Permalink
Add Prettier Action
Browse files Browse the repository at this point in the history
  • Loading branch information
Erisa committed Feb 4, 2024
1 parent c819c47 commit 5dec267
Show file tree
Hide file tree
Showing 3 changed files with 295 additions and 3 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/prettier.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Continuous Integration

on:
pull_request:
push:


jobs:
prettier:
name: Prettier Check
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # pin@v2

- name: Run Prettier
id: prettier-run
uses: rutajdash/prettier-cli-action@30325c923a7b131ab8b6c99e0aff38afaddb9643 # [email protected]
with:
config_path: ./.prettierrc.json

- name: Prettier Output
if: ${{ failure() }}
shell: bash
run: |
echo "The following files are not formatted:"
echo "${{steps.prettier-run.outputs.prettier_output}}"
267 changes: 265 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 5dec267

Please sign in to comment.