fix(runtime test): Fall back to CDN instead of crashing when sibling … #765
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: CI / CD | |
| on: | |
| push: | |
| branches: [main] | |
| tags: ["v*"] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| # Lint and check the codebase, including running clippy and checking for unused code. | |
| check: | |
| name: Lint and Check | |
| uses: ./.github/workflows/_check.yml | |
| secrets: inherit | |
| # Build the release WebAssembly artifact. | |
| wasm: | |
| name: WebAssembly | |
| needs: check | |
| permissions: | |
| contents: write | |
| uses: ./.github/workflows/_wasm.yml | |
| secrets: inherit | |
| # JS-side gate: lint runtime/ and run the Deno + Playwright suite against the CDN-deployed wasm. Independent of the Rust pipeline above, runs in parallel with `wasm`, converges at `runtime` below. | |
| runtime_check: | |
| name: Runtime JS Check | |
| uses: ./.github/workflows/_runtime_check.yml | |
| secrets: inherit | |
| # Upload runtime (JS + WASM) to the CDN. Convergence point: blocked on both `wasm` (artifact) and `runtime_check` (JS gate). | |
| runtime: | |
| name: Upload Runtime to CDN | |
| needs: [wasm, runtime_check] | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
| permissions: | |
| contents: read | |
| uses: ./.github/workflows/_runtime.yml | |
| secrets: inherit | |
| # Build the demo after the runtime upload, since the demo consumes the CDN-hosted runtime. | |
| demo: | |
| name: Build Demo | |
| needs: runtime | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
| permissions: | |
| contents: read | |
| uses: ./.github/workflows/_demo.yml | |
| secrets: inherit |