fix(deps): bump prettier from 3.3.2 to 3.4.1 #31
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Continuous Integration | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
prettier_check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
ref: '${{ github.head_ref }}' | |
persist-credentials: false | |
- name: Check code formatting | |
run: | | |
changed_files=$(git diff --name-only HEAD^) | |
for file in $changed_files; do | |
if [[ $file == *.js || $file == *.md ]]; then | |
prettier_check=$(npx prettier --check $file) | |
if [[ $? -ne 0 ]]; then | |
echo "Code formatting required for $file" | |
exit 1 | |
fi | |
fi | |
done |