Skip to content

Commit

Permalink
ci: add prettier.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sondregronas authored Sep 27, 2024
1 parent 4be0ac7 commit 1c956be
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/prettier.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Prettier

on: [push, pull_request]
jobs:
prettier:
name: Prettier Check
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Run Prettier
id: prettier-run
uses: rutajdash/[email protected]
with:
config_path: ./package.json

- name: Prettier Output
if: ${{ failure() }}
shell: bash
run: |
echo "The following files are not formatted:"
echo "${{steps.prettier-run.outputs.prettier_output}}"

0 comments on commit 1c956be

Please sign in to comment.