Skip to content

Commit

Permalink
Add a nextest compatibility check to GitHub Actions CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
sunshowers committed Sep 11, 2022
1 parent 3e2117f commit 198acfb
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,27 @@ jobs:
export PATH=$HOME/.wasmtime/bin/:$PATH
cargo install cargo-wasi
cargo wasi bench --no-default-features -- --test
nextest-compat:
name: Check compatibility with nextest
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- stable

steps:
- uses: actions/checkout@v2

- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
components: rustfmt, clippy

- uses: Swatinem/rust-cache@v1

- uses: taiki-e/install-action@nextest

- run: ci/nextest-compat.sh
11 changes: 11 additions & 0 deletions ci/nextest-compat.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash
set -ex -o pipefail

CARGO=${CARGO:-cargo}

cd "$(git rev-parse --show-toplevel)"

echo "Checking benches/bench_main..."

$CARGO nextest list --benches
$CARGO nextest run --benches

0 comments on commit 198acfb

Please sign in to comment.