Fix alias semantics and durable object test harness #46
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 | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| test: | |
| name: Run tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Cache cargo artifacts | |
| uses: Swatinem/rust-cache@v2 | |
| - name: Install wasm target | |
| run: rustup target add wasm32-unknown-unknown | |
| - name: Cache worker-build | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.cargo/bin/worker-build | |
| key: ${{ runner.os }}-worker-build-0.7 | |
| - name: Install worker-build | |
| run: | | |
| if ! command -v worker-build >/dev/null; then | |
| cargo install worker-build@^0.7 | |
| fi | |
| - name: Set up Bun | |
| uses: oven-sh/setup-bun@v2 | |
| - name: Install JS test dependencies | |
| run: bun install --cwd tests/js_client | |
| - name: Verify Docker Compose | |
| run: docker compose version | |
| - name: Pre-build fake pipeline image | |
| run: docker compose build fake-pipeline | |
| - name: Build worker bundle | |
| run: worker-build --release | |
| - name: Run tests | |
| run: cargo test --all --locked |