Skip to content

Commit

Permalink
feat: action test.
Browse files Browse the repository at this point in the history
  • Loading branch information
rintim committed Apr 20, 2024
1 parent 23912b0 commit 1629821
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/Check-Code-Format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Check-Code-Format

# This action works with pull requests and pushes on the main branch
on:
pull_request:
branches: [PR-Branch]

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

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

# This step only runs if prettier finds errors causing the previous step to fail
# This steps lists the files where errors were found
- 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 1629821

Please sign in to comment.