Cli tool #6
Workflow file for this run
This file contains hidden or 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: Build Packages Test | |
| on: | |
| pull_request: | |
| branches: | |
| - master | |
| jobs: | |
| build-packages: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| - name: Install Dependencies | |
| run: bun install | |
| - name: Build all packages | |
| run: | | |
| set -e | |
| for dir in packages/*; do | |
| if [ -d "$dir" ]; then | |
| echo "Building $dir" | |
| if [ -f "$dir/package.json" ]; then | |
| ( | |
| cd "$dir" | |
| bun run build | |
| ) | |
| fi | |
| fi | |
| done |