From 0851e8b34701a632196071d3a8684fa9193a8900 Mon Sep 17 00:00:00 2001 From: Brian Martin Date: Fri, 12 Apr 2024 09:05:23 -0700 Subject: [PATCH] update workflow config --- .github/workflows/cargo.yml | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cargo.yml b/.github/workflows/cargo.yml index bf2914d..19f3ff6 100644 --- a/.github/workflows/cargo.yml +++ b/.github/workflows/cargo.yml @@ -153,8 +153,8 @@ jobs: path: install # Smoke tests are even more expensive, so they run last. - smoketest: - name: smoketest + smoketest-cache: + name: smoketest-cache runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -175,7 +175,25 @@ jobs: shell: bash run: | memcached -t 1 -p 11211 -m 256 & - target/release/rpc-perf configs/smoketest.toml + target/release/rpc-perf configs/smoketest-cache.toml + + smoketest-pubsub: + name: smoketest-pubsub + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: ./.github/actions/setup-rust + - uses: Swatinem/rust-cache@v2 + with: + shared-key: smoketest-ubuntu-latest + - name: build + shell: bash + run: | + cargo build --workspace --all-targets --locked --release + - name: test + shell: bash + run: | + target/release/rpc-perf configs/smoketest-pubsub.toml check-success: name: verify all tests pass @@ -187,7 +205,8 @@ jobs: - clippy - clippy-upload - audit - - smoketest + - smoketest-cache + - smoketest-pubsub steps: - name: no-op