Skip to content

fix(runtime test): Fall back to CDN instead of crashing when sibling … #765

fix(runtime test): Fall back to CDN instead of crashing when sibling …

fix(runtime test): Fall back to CDN instead of crashing when sibling … #765

Workflow file for this run

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