From 198acfbace29967bb238a8f4f0d6c2417ae75dc6 Mon Sep 17 00:00:00 2001 From: Rain Date: Tue, 19 Jul 2022 18:19:39 -0700 Subject: [PATCH] Add a nextest compatibility check to GitHub Actions CI. --- .github/workflows/ci.yaml | 24 ++++++++++++++++++++++++ ci/nextest-compat.sh | 11 +++++++++++ 2 files changed, 35 insertions(+) create mode 100755 ci/nextest-compat.sh diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index b798ed63..5ee644bc 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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 diff --git a/ci/nextest-compat.sh b/ci/nextest-compat.sh new file mode 100755 index 00000000..fed9f2f9 --- /dev/null +++ b/ci/nextest-compat.sh @@ -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