Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
asafdl committed Nov 13, 2024
1 parent 8e1a8d2 commit 4d6f16a
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,28 @@ jobs:
echo "$STATUS"
exit 1
fi
require-build-workspaces:
name: Require Build in PR
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v4

- name: install deps
run: npm install --workspaces

- name: Run Build workspaces
run: npm run build:ws

- name: Require Build in PR
run: |
STATUS=$(git status --porcelain)
# Check if the status is not empty
if [ ! -z "$STATUS" ]; then
echo "Please build and commit your changes locally before submitting a PR."
echo "------"
echo "Uncommitted changes:"
echo "$STATUS"
exit 1
fi

0 comments on commit 4d6f16a

Please sign in to comment.