Skip to content

Commit

Permalink
chore: disable formatter ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Firgrep committed Nov 28, 2024
1 parent f1f9574 commit 7950b30
Showing 1 changed file with 20 additions and 19 deletions.
39 changes: 20 additions & 19 deletions .github/workflows/verify_formatting.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,25 @@ jobs:
with:
fetch-depth: 0
clean: true

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 22

- name: Get Prettier version from package-lock.json
run: |
PRETTIER_VERSION=$(grep -m 1 'prettier' package-lock.json | cut -d '"' -f 4 | cut -c 2-)
echo $PRETTIER_VERSION

- name: Check formatting
run: |
npx --yes prettier@$PRETTIER_VERSION --check --config .prettierrc .
- name: Fail if formatting check failed
if: failure()
run: |
echo "Formatting check failed. Please format your code according to the project's Prettier configuration."
exit 1
# ! currently bugged! Will throw false negatives.
# - name: Set up Node.js
# uses: actions/setup-node@v4
# with:
# node-version: 22

# - name: Get Prettier version from package-lock.json
# run: |
# PRETTIER_VERSION=$(grep -m 1 'prettier' package-lock.json | cut -d '"' -f 4 | cut -c 2-)
# echo $PRETTIER_VERSION

# - name: Check formatting
# run: |
# npx --yes prettier@$PRETTIER_VERSION --check --config .prettierrc .

# - name: Fail if formatting check failed
# if: failure()
# run: |
# echo "Formatting check failed. Please format your code according to the project's Prettier configuration."
# exit 1

0 comments on commit 7950b30

Please sign in to comment.