Update to latest Effect #5
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 | |
| - "[0-9]+.[0-9]+.x" | |
| pull_request: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| env: | |
| CARGO_TERM_COLOR: always | |
| GOLEM_VERSION: "1.5.3" | |
| WASM_RQUICKJS_VERSION: "0.3.6" | |
| jobs: | |
| check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: "24" | |
| cache: npm | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| targets: wasm32-wasip2 | |
| - uses: bytecodealliance/setup-wasi-sdk-action@b2de090b44eb70013ee96b393727d473b35e1728 | |
| with: | |
| version: "25" | |
| # rquickjs-sys Bindgen needs the host compiler, not a global WASI CC/CXX. | |
| add-to-path: "false" | |
| - uses: cargo-bins/cargo-binstall@v1.21.0 | |
| - name: Install wasm-rquickjs | |
| run: cargo binstall --force --locked "wasm-rquickjs-cli@${WASM_RQUICKJS_VERSION}" | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Lint | |
| run: npm run lint | |
| - name: Check formatting | |
| run: npm run format:check | |
| - name: Typecheck | |
| run: npm run typecheck | |
| - name: Test | |
| run: npm test | |
| - name: Build package | |
| run: npm run build | |
| - name: Build agent template WASM | |
| run: npm run build-agent-template | |
| - name: Check package contents | |
| run: npm pack --dry-run | |
| - name: Install Golem | |
| run: | | |
| curl --fail --location --retry 3 \ | |
| "https://github.com/golemcloud/golem/releases/download/v${GOLEM_VERSION}/golem-x86_64-unknown-linux-gnu" \ | |
| --output golem | |
| chmod +x golem | |
| sudo mv golem /usr/local/bin/golem | |
| golem --version | |
| - name: Install integration test dependencies | |
| working-directory: integration-test | |
| run: npm ci | |
| - name: Run integration tests | |
| working-directory: integration-test | |
| run: npm run test:integration |