Skip to content

Commit 9bd3466

Browse files
committed
fix
1 parent 155e32e commit 9bd3466

File tree

2 files changed

+27
-39
lines changed

2 files changed

+27
-39
lines changed

.github/workflows/ci.yml

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,34 @@ jobs:
4343
- name: Lint
4444
run: pnpm --filter "@radix-ui/*" lint
4545

46+
format:
47+
name: Check Formatting
48+
runs-on: ubuntu-latest
49+
steps:
50+
- name: Checkout
51+
uses: actions/checkout@v4
52+
53+
- name: CI Setup
54+
uses: ./.github/actions/ci-setup
55+
56+
- name: Run formatter
57+
run: pnpm format
58+
59+
- name: Check for changes
60+
run: |
61+
if [[ -n $(git status --porcelain) ]]; then
62+
echo "::error::Files are not properly formatted. Please run 'pnpm format' locally and commit the changes."
63+
echo ""
64+
echo "The following files need formatting:"
65+
git status --porcelain
66+
echo ""
67+
echo "Diff:"
68+
git diff
69+
exit 1
70+
fi
71+
4672
test-vr:
47-
name: Visual Regression Tests
73+
name: Tests: Visual regression
4874
needs: build
4975
runs-on: macos-latest
5076
steps:
@@ -58,7 +84,6 @@ jobs:
5884
uses: actions/download-artifact@v4
5985
with:
6086
name: build-output
61-
path: packages
6287

6388
- name: Install Playwright Browsers
6489
run: pnpm --filter "playground" exec playwright install --with-deps

.github/workflows/format.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.

0 commit comments

Comments
 (0)