prepare release v0.1.96 #3089
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 React | |
| on: | |
| push: | |
| pull_request: | |
| branches: [main] | |
| env: | |
| # Workaround for bug in Zig 0.15.2 (fixed in next version) | |
| # https://github.com/ziglang/zig/issues/25805 | |
| ZIG_GLOBAL_CACHE_DIR: ${{ github.workspace }}/.zig-global-cache | |
| jobs: | |
| test: | |
| name: Test (${{ matrix.os }}) | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, windows-latest] | |
| runs-on: ${{ matrix.os }} | |
| defaults: | |
| run: | |
| shell: bash | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| - name: Setup Zig | |
| uses: goto-bus-stop/setup-zig@v2 | |
| with: | |
| version: 0.15.2 | |
| - name: Install dependencies | |
| run: bun install | |
| - name: Build core | |
| run: | | |
| cd packages/core | |
| bun run build | |
| - name: Build | |
| run: | | |
| cd packages/react | |
| bun run build --ci | |
| - name: Run tests | |
| run: | | |
| cd packages/react | |
| bun run test | |
| # Gate job for branch protection | |
| build-complete: | |
| name: React - Build and Test | |
| needs: [test] | |
| runs-on: ubuntu-latest | |
| if: always() | |
| steps: | |
| - name: Check test results | |
| run: | | |
| if [ "${{ needs.test.result }}" != "success" ]; then | |
| echo "Tests failed" | |
| exit 1 | |
| fi | |
| echo "All tests passed" |