ci: fix workflow — build packages individually, replace main.yml #1
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: Test | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| branches: [master] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: npm | |
| - run: npm ci | |
| - name: Build | |
| run: | | |
| for pkg in packages/core packages/simulator packages/mcp apps/cli; do | |
| echo "::group::Building $pkg" | |
| npm run build --workspace=$pkg --if-present | |
| echo "::endgroup::" | |
| done | |
| - name: Test | |
| run: npm test --workspaces --if-present |