Skip to content

Commit

Permalink
ci: add memcached smoketest to ci
Browse files Browse the repository at this point in the history
Adds a simple smoketest to ci to make sure the binary works
  • Loading branch information
brayniac committed Jan 20, 2024
1 parent 47f1391 commit 0bacd5c
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/cargo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,28 @@ jobs:
name: binaries
path: install

# Smoke tests are even more expensive, so they run last.
smoketest:
name: smoketest
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: install memcached
shell: bash
run: |
sudo apt-get update
sudo apt-get install memcached
- name: build
shell: bash
run: |
cargo build --workspace --all-features --all-targets --locked --release
memcached -t 1 -p 11211 -m 256 &
target/release/rpc-perf config/memcached.toml
check-success:
name: verify all tests pass
runs-on: ubuntu-latest
Expand All @@ -149,6 +171,7 @@ jobs:
- clippy
- clippy-upload
- audit
- smoketest

steps:
- name: no-op
Expand Down

0 comments on commit 0bacd5c

Please sign in to comment.