Add consent & user preference streaming to WASM bindings #2617
This file contains 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: Test workspace with HTTP | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
# only run tests when related changes are made | |
paths: | |
- ".github/workflows/test-http-api.yml" | |
- "dev/**" | |
- "mls_validation_service/**" | |
- "xmtp_api_http/**" | |
- "xmtp_cryptography/**" | |
- "xmtp_id/**" | |
- "xmtp_mls/**" | |
- "xmtp_proto/**" | |
- "xmtp_v2/**" | |
- "Cargo.toml" | |
- "Cargo.lock" | |
- ".cargo/**" | |
- "rust-toolchain" | |
env: | |
CARGO_TERM_COLOR: always | |
CARGO_INCREMENTAL: 0 | |
RUSTFLAGS: --cfg tracing_unstable | |
CARGO_PROFILE_TEST_DEBUG: 0 | |
jobs: | |
test: | |
name: Test | |
runs-on: warp-ubuntu-latest-x64-16x | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Update rust toolchains | |
run: rustup update | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
- name: Cache | |
uses: Swatinem/rust-cache@v2 | |
with: | |
workspaces: | | |
. | |
- name: Start Docker containers | |
run: dev/up | |
- name: Install nextest | |
uses: taiki-e/install-action@nextest | |
- name: build tests | |
run: cargo nextest run --config-file ".cargo/nextest.toml" --no-run --tests --workspace --exclude xmtp_api_grpc --exclude xmtpv3 --exclude bindings_node --exclude bindings_wasm --features http-api | |
- name: cargo test | |
run: cargo nextest run --config-file ".cargo/nextest.toml" --workspace --exclude xmtp_api_grpc --exclude xmtpv3 --exclude bindings_node --exclude bindings_wasm --exclude xmtp_api_d14n --features http-api --test-threads 2 |