Skip to content

Commit 4d6f16a

Browse files
committed
test
1 parent 8e1a8d2 commit 4d6f16a

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/pr.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,28 @@ jobs:
5353
echo "$STATUS"
5454
exit 1
5555
fi
56+
require-build-workspaces:
57+
name: Require Build in PR
58+
runs-on: ubuntu-latest
59+
steps:
60+
- name: Checkout source code
61+
uses: actions/checkout@v4
62+
63+
- name: install deps
64+
run: npm install --workspaces
65+
66+
- name: Run Build workspaces
67+
run: npm run build:ws
68+
69+
- name: Require Build in PR
70+
run: |
71+
STATUS=$(git status --porcelain)
72+
73+
# Check if the status is not empty
74+
if [ ! -z "$STATUS" ]; then
75+
echo "Please build and commit your changes locally before submitting a PR."
76+
echo "------"
77+
echo "Uncommitted changes:"
78+
echo "$STATUS"
79+
exit 1
80+
fi

0 commit comments

Comments
 (0)