-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Rename to xmtp_api_http * Update deps * Fix settings * Add streaming fns to HTTP client * Allow using `http-api` feature flag to switch client * add github CI workflow for http * remove `tokio::spawn` in stream_all_messages by using async_stream * make all Mutex's parking_lot * update dependencies in xmtp_api_grpc * remove unused dependencies in xmtp_api_grpc --------- Co-authored-by: Ry Racherbaumer <[email protected]>
- Loading branch information
Showing
42 changed files
with
1,832 additions
and
1,300 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Test workspace with HTTP | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
# only run tests when related changes are made | ||
paths: | ||
- ".github/workflows/test-workspace.yml" | ||
- "dev/**" | ||
- "mls_validation_service/**" | ||
- "xmtp_api_http/**" | ||
- "xmtp_cryptography/**" | ||
- "xmtp_id/**" | ||
- "xmtp_mls/**" | ||
- "xmtp_proto/**" | ||
- "xmtp_v2/**" | ||
- "Cargo.toml" | ||
- "Cargo.lock" | ||
- "rust-toolchain" | ||
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: Run cargo test on main workspace | ||
run: cargo test --workspace --exclude xmtp_api_grpc --features http-api -- --test-threads=2 |
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
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
Oops, something went wrong.