Skip to content

Commit

Permalink
add workflow for http
Browse files Browse the repository at this point in the history
  • Loading branch information
insipx committed Aug 8, 2024
1 parent 3939d39 commit d6cb8f3
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 8 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/test-http-api.yml
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 -- --test-threads=2
8 changes: 0 additions & 8 deletions .github/workflows/test-workspace.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
name: Test Workspace

on:
push:
branches:
- main

pull_request:
# only run tests when related changes are made
paths:
Expand All @@ -20,29 +18,23 @@ on:
- "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 -- --test-threads=2

0 comments on commit d6cb8f3

Please sign in to comment.