From c112c6010ba517c645ef0f2a2274bb291b0866d1 Mon Sep 17 00:00:00 2001 From: Connor Fitzgerald Date: Sat, 19 Feb 2022 00:50:56 -0500 Subject: [PATCH] Use cargo nextest for running our tests --- .github/workflows/ci.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a9af986914c..196f7d088ff 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,6 +29,7 @@ jobs: tool: clippy kind: local backends: dx12 # dx11 + nextest_url: https://get.nexte.st/latest/windows-tar - name: Windows Nightly x86_64 os: windows-2019 @@ -65,7 +66,8 @@ jobs: target: x86_64-unknown-linux-gnu tool: clippy kind: local - backends: vulkan # gl + backends: vulkan gl + nextest_url: https://get.nexte.st/latest/linux - name: Linux aarch64 os: ubuntu-20.04 @@ -139,6 +141,12 @@ jobs: with: key: ${{ matrix.target }}-a # suffix for cache busting + - name: download nextest + if: matrix.kind == 'local' + shell: bash + run: | + curl -LsSf ${{ matrix.nextest_url }} | tar xzf - -C ${CARGO_HOME:-~/.cargo}/bin + - name: add android apk to path if: matrix.os == 'ubuntu-20.04' && matrix.target == 'aarch64-linux-android' run: | @@ -205,11 +213,11 @@ jobs: # run wgpu-info cargo run --bin wgpu-info # run unit and player tests - cargo test -p wgpu-types -p wgpu-hal -p wgpu-core -p player --no-fail-fast + cargo nextest run -p wgpu-types -p wgpu-hal -p wgpu-core -p player # run native tests for backend in ${{ matrix.backends }}; do echo "======= NATIVE TESTS $backend ======"; - WGPU_BACKEND=$backend cargo test -p wgpu --no-fail-fast -- --nocapture --test-threads=1 + WGPU_BACKEND=$backend cargo nextest run -p wgpu done fmt: