Skip to content

Commit

Permalink
ci: add memcached smoketest to ci (iopsystems#151)
Browse files Browse the repository at this point in the history
Adds a simple smoketest to ci to make sure the binary works

Co-authored-by: Sean Lynch <42618346+swlynch99@users.noreply.github.com>

---------

Co-authored-by: Sean Lynch <42618346+swlynch99@users.noreply.github.com>
  • Loading branch information
brayniac and swlynch99 authored Jan 23, 2024
1 parent 6745324 commit b959c12
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/cargo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,31 @@ 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
- name: test
shell: bash
run: |
memcached -t 1 -p 11211 -m 256 &
target/release/rpc-perf configs/memcached.toml
check-success:
name: verify all tests pass
runs-on: ubuntu-latest
Expand All @@ -149,6 +174,7 @@ jobs:
- clippy
- clippy-upload
- audit
- smoketest

steps:
- name: no-op
Expand Down

0 comments on commit b959c12

Please sign in to comment.