Skip to content

Commit

Permalink
ci: run integration tests in parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
zeitgeist committed Oct 16, 2024
1 parent 97d2806 commit 831519b
Showing 1 changed file with 26 additions and 6 deletions.
32 changes: 26 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ env:
CARGO_TERM_COLOR: always

jobs:
build:
ci:
runs-on: ubuntu-latest

steps:
Expand All @@ -22,12 +22,32 @@ jobs:
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- run: cargo build --release
- run: cargo test --release
- run: cargo clippy -- -Dwarnings
- run: cargo build --release && cargo test --release -- --nocapture
- run: cargo clippy --release -- -Dwarnings
example_multi_server_channels:
runs-on: ubuntu-latest
needs: ci
steps:
- name: Run example http-multi-server-channels
run: cargo test -- --nocapture
working-directory: ./examples/http-multi-server-channels
- run: cargo build --release && cargo test --release -- --nocapture
example_single_server_channels:
runs-on: ubuntu-latest
needs: ci
steps:
- name: Run example http-single-server-channels
run: cargo test -- --nocapture
working-directory: ./examples/http-single-server-channels
- run: cargo build --release && cargo test --release -- --nocapture
example_iroh_p2p_channels:
runs-on: ubuntu-latest
needs: ci
steps:
- name: Run example iroh-p2p-channels
run: cargo test -- --nocapture
working-directory: ./examples/iroh-p2p-channels
- run: docker compose -f docker-compose.yml up -d && cargo build --release && cargo test --release -- --nocapture
example_sql_integration:
runs-on: ubuntu-latest
needs: ci
steps:
- name: Run example sql-integration
run: docker compose -f docker-compose.yml up -d && cargo build --release && cargo test --release -- --nocapture
working-directory: ./examples/sql-integration

0 comments on commit 831519b

Please sign in to comment.