Skip to content

Feat/multiple gateways #31

Feat/multiple gateways

Feat/multiple gateways #31

Workflow file for this run

name: ic-websocket-cdk-mo tests
on:
push:
branches:
- main
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/setup-node@v3
with:
node-version: 18
- uses: aviate-labs/[email protected]
with:
dfx-version: 0.15.1
# rust toolchain is needed for integration tests
- uses: actions-rs/toolchain@v1
with:
toolchain: "stable"
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: "true"
- name: Install mops
run: npm i ic-mops -g
# the following steps are replicated in the scripts/test.sh file
- name: Prepare environment for integration tests
run: |
./scripts/download-pocket-ic.sh
./scripts/build-test-canister.sh
- name: Run integration tests
run: |
export POCKET_IC_BIN="$(pwd)/bin/pocket-ic"
export TEST_CANISTER_WASM_PATH="$(pwd)/bin/test_canister.wasm"
cd tests/ic-websocket-cdk-rs
cargo test --package ic-websocket-cdk --lib -- tests::integration_tests --test-threads 1