diff --git a/.github/workflows/gen_alpine3.15.yml b/.github/workflows/gen_alpine3.15.yml index 8526b2f74..0a5361ba4 100644 --- a/.github/workflows/gen_alpine3.15.yml +++ b/.github/workflows/gen_alpine3.15.yml @@ -67,9 +67,14 @@ jobs: - name: "Build (Release mode)" shell: bash run: "cargo build --all --release" + - name: "Install cargo-nextest from Cargo" + uses: baptiste0928/cargo-install@v2 + with: + crate: "cargo-nextest" + cache-key: "alpine3.15" - name: "Test (Release mode)" shell: bash - run: "cargo test --all --release" + run: "cargo nextest run --all --release --no-fail-fast" - name: "Package" shell: bash run: "bash ci/deploy.sh" diff --git a/.github/workflows/gen_alpine3.15_continuous.yml b/.github/workflows/gen_alpine3.15_continuous.yml index 57e0c7201..acd883931 100644 --- a/.github/workflows/gen_alpine3.15_continuous.yml +++ b/.github/workflows/gen_alpine3.15_continuous.yml @@ -70,9 +70,14 @@ jobs: - name: "Build (Release mode)" shell: bash run: "cargo build --all --release" + - name: "Install cargo-nextest from Cargo" + uses: baptiste0928/cargo-install@v2 + with: + crate: "cargo-nextest" + cache-key: "alpine3.15" - name: "Test (Release mode)" shell: bash - run: "cargo test --all --release" + run: "cargo nextest run --all --release --no-fail-fast" - name: "Package" shell: bash run: "bash ci/deploy.sh" diff --git a/.github/workflows/gen_alpine3.15_tag.yml b/.github/workflows/gen_alpine3.15_tag.yml index ea56b4436..28da4f9cb 100644 --- a/.github/workflows/gen_alpine3.15_tag.yml +++ b/.github/workflows/gen_alpine3.15_tag.yml @@ -50,9 +50,14 @@ jobs: - name: "Build (Release mode)" shell: bash run: "cargo build --all --release" + - name: "Install cargo-nextest from Cargo" + uses: baptiste0928/cargo-install@v2 + with: + crate: "cargo-nextest" + cache-key: "alpine3.15" - name: "Test (Release mode)" shell: bash - run: "cargo test --all --release" + run: "cargo nextest run --all --release --no-fail-fast" - name: "Package" shell: bash run: "bash ci/deploy.sh" diff --git a/.github/workflows/gen_centos7.yml b/.github/workflows/gen_centos7.yml index d28970a03..3b8c0baf6 100644 --- a/.github/workflows/gen_centos7.yml +++ b/.github/workflows/gen_centos7.yml @@ -91,9 +91,16 @@ jobs: - name: "Build (Release mode)" shell: bash run: "source /opt/rh/devtoolset-9/enable && cargo build --all --release" + - name: "Install cargo-nextest from Cargo" + uses: baptiste0928/cargo-install@v2 + with: + crate: "cargo-nextest" + cache-key: "centos7" - name: "Test (Release mode)" shell: bash - run: "source /opt/rh/devtoolset-9/enable && cargo test --all --release" + run: | + source /opt/rh/devtoolset-9/enable + cargo nextest run --all --release --no-fail-fast - name: "Package" shell: bash run: "bash ci/deploy.sh" diff --git a/.github/workflows/gen_centos7_continuous.yml b/.github/workflows/gen_centos7_continuous.yml index 5e2811d93..a9a452e52 100644 --- a/.github/workflows/gen_centos7_continuous.yml +++ b/.github/workflows/gen_centos7_continuous.yml @@ -95,9 +95,16 @@ jobs: - name: "Build (Release mode)" shell: bash run: "source /opt/rh/devtoolset-9/enable && cargo build --all --release" + - name: "Install cargo-nextest from Cargo" + uses: baptiste0928/cargo-install@v2 + with: + crate: "cargo-nextest" + cache-key: "centos7" - name: "Test (Release mode)" shell: bash - run: "source /opt/rh/devtoolset-9/enable && cargo test --all --release" + run: | + source /opt/rh/devtoolset-9/enable + cargo nextest run --all --release --no-fail-fast - name: "Package" shell: bash run: "bash ci/deploy.sh" diff --git a/.github/workflows/gen_centos7_tag.yml b/.github/workflows/gen_centos7_tag.yml index ae1cfd338..b97a2d637 100644 --- a/.github/workflows/gen_centos7_tag.yml +++ b/.github/workflows/gen_centos7_tag.yml @@ -74,9 +74,16 @@ jobs: - name: "Build (Release mode)" shell: bash run: "source /opt/rh/devtoolset-9/enable && cargo build --all --release" + - name: "Install cargo-nextest from Cargo" + uses: baptiste0928/cargo-install@v2 + with: + crate: "cargo-nextest" + cache-key: "centos7" - name: "Test (Release mode)" shell: bash - run: "source /opt/rh/devtoolset-9/enable && cargo test --all --release" + run: | + source /opt/rh/devtoolset-9/enable + cargo nextest run --all --release --no-fail-fast - name: "Package" shell: bash run: "bash ci/deploy.sh" diff --git a/.github/workflows/gen_centos8.yml b/.github/workflows/gen_centos8.yml index c60d483d6..b9f4e73b1 100644 --- a/.github/workflows/gen_centos8.yml +++ b/.github/workflows/gen_centos8.yml @@ -65,9 +65,14 @@ jobs: - name: "Build (Release mode)" shell: bash run: "cargo build --all --release" + - name: "Install cargo-nextest from Cargo" + uses: baptiste0928/cargo-install@v2 + with: + crate: "cargo-nextest" + cache-key: "centos8" - name: "Test (Release mode)" shell: bash - run: "cargo test --all --release" + run: "cargo nextest run --all --release --no-fail-fast" - name: "Package" shell: bash run: "bash ci/deploy.sh" diff --git a/.github/workflows/gen_centos8_continuous.yml b/.github/workflows/gen_centos8_continuous.yml index 525e0a862..fcd63e84a 100644 --- a/.github/workflows/gen_centos8_continuous.yml +++ b/.github/workflows/gen_centos8_continuous.yml @@ -69,9 +69,14 @@ jobs: - name: "Build (Release mode)" shell: bash run: "cargo build --all --release" + - name: "Install cargo-nextest from Cargo" + uses: baptiste0928/cargo-install@v2 + with: + crate: "cargo-nextest" + cache-key: "centos8" - name: "Test (Release mode)" shell: bash - run: "cargo test --all --release" + run: "cargo nextest run --all --release --no-fail-fast" - name: "Package" shell: bash run: "bash ci/deploy.sh" diff --git a/.github/workflows/gen_centos8_tag.yml b/.github/workflows/gen_centos8_tag.yml index d2727015f..b5ce4e23b 100644 --- a/.github/workflows/gen_centos8_tag.yml +++ b/.github/workflows/gen_centos8_tag.yml @@ -48,9 +48,14 @@ jobs: - name: "Build (Release mode)" shell: bash run: "cargo build --all --release" + - name: "Install cargo-nextest from Cargo" + uses: baptiste0928/cargo-install@v2 + with: + crate: "cargo-nextest" + cache-key: "centos8" - name: "Test (Release mode)" shell: bash - run: "cargo test --all --release" + run: "cargo nextest run --all --release --no-fail-fast" - name: "Package" shell: bash run: "bash ci/deploy.sh" diff --git a/.github/workflows/gen_centos9.yml b/.github/workflows/gen_centos9.yml index 2c456f188..7b8eeea6c 100644 --- a/.github/workflows/gen_centos9.yml +++ b/.github/workflows/gen_centos9.yml @@ -65,9 +65,14 @@ jobs: - name: "Build (Release mode)" shell: bash run: "cargo build --all --release" + - name: "Install cargo-nextest from Cargo" + uses: baptiste0928/cargo-install@v2 + with: + crate: "cargo-nextest" + cache-key: "centos9" - name: "Test (Release mode)" shell: bash - run: "cargo test --all --release" + run: "cargo nextest run --all --release --no-fail-fast" - name: "Package" shell: bash run: "bash ci/deploy.sh" diff --git a/.github/workflows/gen_centos9_continuous.yml b/.github/workflows/gen_centos9_continuous.yml index d0581b5c4..c2e78a525 100644 --- a/.github/workflows/gen_centos9_continuous.yml +++ b/.github/workflows/gen_centos9_continuous.yml @@ -69,9 +69,14 @@ jobs: - name: "Build (Release mode)" shell: bash run: "cargo build --all --release" + - name: "Install cargo-nextest from Cargo" + uses: baptiste0928/cargo-install@v2 + with: + crate: "cargo-nextest" + cache-key: "centos9" - name: "Test (Release mode)" shell: bash - run: "cargo test --all --release" + run: "cargo nextest run --all --release --no-fail-fast" - name: "Package" shell: bash run: "bash ci/deploy.sh" diff --git a/.github/workflows/gen_centos9_tag.yml b/.github/workflows/gen_centos9_tag.yml index 127a0d98e..02cc2b18e 100644 --- a/.github/workflows/gen_centos9_tag.yml +++ b/.github/workflows/gen_centos9_tag.yml @@ -48,9 +48,14 @@ jobs: - name: "Build (Release mode)" shell: bash run: "cargo build --all --release" + - name: "Install cargo-nextest from Cargo" + uses: baptiste0928/cargo-install@v2 + with: + crate: "cargo-nextest" + cache-key: "centos9" - name: "Test (Release mode)" shell: bash - run: "cargo test --all --release" + run: "cargo nextest run --all --release --no-fail-fast" - name: "Package" shell: bash run: "bash ci/deploy.sh" diff --git a/.github/workflows/gen_debian10.3.yml b/.github/workflows/gen_debian10.3.yml index 25d13a1fe..29cd25f55 100644 --- a/.github/workflows/gen_debian10.3.yml +++ b/.github/workflows/gen_debian10.3.yml @@ -68,9 +68,14 @@ jobs: - name: "Build (Release mode)" shell: bash run: "cargo build --all --release" + - name: "Install cargo-nextest from Cargo" + uses: baptiste0928/cargo-install@v2 + with: + crate: "cargo-nextest" + cache-key: "debian10.3" - name: "Test (Release mode)" shell: bash - run: "cargo test --all --release" + run: "cargo nextest run --all --release --no-fail-fast" - name: "Package" shell: bash run: "bash ci/deploy.sh" diff --git a/.github/workflows/gen_debian10.3_continuous.yml b/.github/workflows/gen_debian10.3_continuous.yml index ff59a8db3..efaa2252f 100644 --- a/.github/workflows/gen_debian10.3_continuous.yml +++ b/.github/workflows/gen_debian10.3_continuous.yml @@ -72,9 +72,14 @@ jobs: - name: "Build (Release mode)" shell: bash run: "cargo build --all --release" + - name: "Install cargo-nextest from Cargo" + uses: baptiste0928/cargo-install@v2 + with: + crate: "cargo-nextest" + cache-key: "debian10.3" - name: "Test (Release mode)" shell: bash - run: "cargo test --all --release" + run: "cargo nextest run --all --release --no-fail-fast" - name: "Package" shell: bash run: "bash ci/deploy.sh" diff --git a/.github/workflows/gen_debian10.3_tag.yml b/.github/workflows/gen_debian10.3_tag.yml index 384c552b7..d74ccb6ce 100644 --- a/.github/workflows/gen_debian10.3_tag.yml +++ b/.github/workflows/gen_debian10.3_tag.yml @@ -51,9 +51,14 @@ jobs: - name: "Build (Release mode)" shell: bash run: "cargo build --all --release" + - name: "Install cargo-nextest from Cargo" + uses: baptiste0928/cargo-install@v2 + with: + crate: "cargo-nextest" + cache-key: "debian10.3" - name: "Test (Release mode)" shell: bash - run: "cargo test --all --release" + run: "cargo nextest run --all --release --no-fail-fast" - name: "Package" shell: bash run: "bash ci/deploy.sh" diff --git a/.github/workflows/gen_debian11.yml b/.github/workflows/gen_debian11.yml index 3f7cf7422..67d3caca8 100644 --- a/.github/workflows/gen_debian11.yml +++ b/.github/workflows/gen_debian11.yml @@ -68,9 +68,14 @@ jobs: - name: "Build (Release mode)" shell: bash run: "cargo build --all --release" + - name: "Install cargo-nextest from Cargo" + uses: baptiste0928/cargo-install@v2 + with: + crate: "cargo-nextest" + cache-key: "debian11" - name: "Test (Release mode)" shell: bash - run: "cargo test --all --release" + run: "cargo nextest run --all --release --no-fail-fast" - name: "Package" shell: bash run: "bash ci/deploy.sh" diff --git a/.github/workflows/gen_debian11_continuous.yml b/.github/workflows/gen_debian11_continuous.yml index 588dbff0b..ee46b285a 100644 --- a/.github/workflows/gen_debian11_continuous.yml +++ b/.github/workflows/gen_debian11_continuous.yml @@ -72,9 +72,14 @@ jobs: - name: "Build (Release mode)" shell: bash run: "cargo build --all --release" + - name: "Install cargo-nextest from Cargo" + uses: baptiste0928/cargo-install@v2 + with: + crate: "cargo-nextest" + cache-key: "debian11" - name: "Test (Release mode)" shell: bash - run: "cargo test --all --release" + run: "cargo nextest run --all --release --no-fail-fast" - name: "Package" shell: bash run: "bash ci/deploy.sh" diff --git a/.github/workflows/gen_debian11_tag.yml b/.github/workflows/gen_debian11_tag.yml index 279cfda0a..bcb1d8df7 100644 --- a/.github/workflows/gen_debian11_tag.yml +++ b/.github/workflows/gen_debian11_tag.yml @@ -51,9 +51,14 @@ jobs: - name: "Build (Release mode)" shell: bash run: "cargo build --all --release" + - name: "Install cargo-nextest from Cargo" + uses: baptiste0928/cargo-install@v2 + with: + crate: "cargo-nextest" + cache-key: "debian11" - name: "Test (Release mode)" shell: bash - run: "cargo test --all --release" + run: "cargo nextest run --all --release --no-fail-fast" - name: "Package" shell: bash run: "bash ci/deploy.sh" diff --git a/.github/workflows/gen_fedora35.yml b/.github/workflows/gen_fedora35.yml index 27f60bd2d..ec658467f 100644 --- a/.github/workflows/gen_fedora35.yml +++ b/.github/workflows/gen_fedora35.yml @@ -62,9 +62,14 @@ jobs: - name: "Build (Release mode)" shell: bash run: "cargo build --all --release" + - name: "Install cargo-nextest from Cargo" + uses: baptiste0928/cargo-install@v2 + with: + crate: "cargo-nextest" + cache-key: "fedora35" - name: "Test (Release mode)" shell: bash - run: "cargo test --all --release" + run: "cargo nextest run --all --release --no-fail-fast" - name: "Package" shell: bash run: "bash ci/deploy.sh" diff --git a/.github/workflows/gen_fedora35_continuous.yml b/.github/workflows/gen_fedora35_continuous.yml index 1050e51a8..bf25dff08 100644 --- a/.github/workflows/gen_fedora35_continuous.yml +++ b/.github/workflows/gen_fedora35_continuous.yml @@ -66,9 +66,14 @@ jobs: - name: "Build (Release mode)" shell: bash run: "cargo build --all --release" + - name: "Install cargo-nextest from Cargo" + uses: baptiste0928/cargo-install@v2 + with: + crate: "cargo-nextest" + cache-key: "fedora35" - name: "Test (Release mode)" shell: bash - run: "cargo test --all --release" + run: "cargo nextest run --all --release --no-fail-fast" - name: "Package" shell: bash run: "bash ci/deploy.sh" diff --git a/.github/workflows/gen_fedora35_tag.yml b/.github/workflows/gen_fedora35_tag.yml index 62494c43f..410645b82 100644 --- a/.github/workflows/gen_fedora35_tag.yml +++ b/.github/workflows/gen_fedora35_tag.yml @@ -45,9 +45,14 @@ jobs: - name: "Build (Release mode)" shell: bash run: "cargo build --all --release" + - name: "Install cargo-nextest from Cargo" + uses: baptiste0928/cargo-install@v2 + with: + crate: "cargo-nextest" + cache-key: "fedora35" - name: "Test (Release mode)" shell: bash - run: "cargo test --all --release" + run: "cargo nextest run --all --release --no-fail-fast" - name: "Package" shell: bash run: "bash ci/deploy.sh" diff --git a/.github/workflows/gen_fedora36.yml b/.github/workflows/gen_fedora36.yml index ba15d8a59..6aa37cd5b 100644 --- a/.github/workflows/gen_fedora36.yml +++ b/.github/workflows/gen_fedora36.yml @@ -62,9 +62,14 @@ jobs: - name: "Build (Release mode)" shell: bash run: "cargo build --all --release" + - name: "Install cargo-nextest from Cargo" + uses: baptiste0928/cargo-install@v2 + with: + crate: "cargo-nextest" + cache-key: "fedora36" - name: "Test (Release mode)" shell: bash - run: "cargo test --all --release" + run: "cargo nextest run --all --release --no-fail-fast" - name: "Package" shell: bash run: "bash ci/deploy.sh" diff --git a/.github/workflows/gen_fedora36_continuous.yml b/.github/workflows/gen_fedora36_continuous.yml index 04d8916d1..8179a9262 100644 --- a/.github/workflows/gen_fedora36_continuous.yml +++ b/.github/workflows/gen_fedora36_continuous.yml @@ -66,9 +66,14 @@ jobs: - name: "Build (Release mode)" shell: bash run: "cargo build --all --release" + - name: "Install cargo-nextest from Cargo" + uses: baptiste0928/cargo-install@v2 + with: + crate: "cargo-nextest" + cache-key: "fedora36" - name: "Test (Release mode)" shell: bash - run: "cargo test --all --release" + run: "cargo nextest run --all --release --no-fail-fast" - name: "Package" shell: bash run: "bash ci/deploy.sh" diff --git a/.github/workflows/gen_fedora36_tag.yml b/.github/workflows/gen_fedora36_tag.yml index 1d95c2eb0..aa8d4114b 100644 --- a/.github/workflows/gen_fedora36_tag.yml +++ b/.github/workflows/gen_fedora36_tag.yml @@ -45,9 +45,14 @@ jobs: - name: "Build (Release mode)" shell: bash run: "cargo build --all --release" + - name: "Install cargo-nextest from Cargo" + uses: baptiste0928/cargo-install@v2 + with: + crate: "cargo-nextest" + cache-key: "fedora36" - name: "Test (Release mode)" shell: bash - run: "cargo test --all --release" + run: "cargo nextest run --all --release --no-fail-fast" - name: "Package" shell: bash run: "bash ci/deploy.sh" diff --git a/.github/workflows/gen_fedora37.yml b/.github/workflows/gen_fedora37.yml index 093b36405..4eda431fc 100644 --- a/.github/workflows/gen_fedora37.yml +++ b/.github/workflows/gen_fedora37.yml @@ -62,9 +62,14 @@ jobs: - name: "Build (Release mode)" shell: bash run: "cargo build --all --release" + - name: "Install cargo-nextest from Cargo" + uses: baptiste0928/cargo-install@v2 + with: + crate: "cargo-nextest" + cache-key: "fedora37" - name: "Test (Release mode)" shell: bash - run: "cargo test --all --release" + run: "cargo nextest run --all --release --no-fail-fast" - name: "Package" shell: bash run: "bash ci/deploy.sh" diff --git a/.github/workflows/gen_fedora37_continuous.yml b/.github/workflows/gen_fedora37_continuous.yml index 64f205225..a77d8ace8 100644 --- a/.github/workflows/gen_fedora37_continuous.yml +++ b/.github/workflows/gen_fedora37_continuous.yml @@ -66,9 +66,14 @@ jobs: - name: "Build (Release mode)" shell: bash run: "cargo build --all --release" + - name: "Install cargo-nextest from Cargo" + uses: baptiste0928/cargo-install@v2 + with: + crate: "cargo-nextest" + cache-key: "fedora37" - name: "Test (Release mode)" shell: bash - run: "cargo test --all --release" + run: "cargo nextest run --all --release --no-fail-fast" - name: "Package" shell: bash run: "bash ci/deploy.sh" diff --git a/.github/workflows/gen_fedora37_tag.yml b/.github/workflows/gen_fedora37_tag.yml index 0c1e43809..b1628afc6 100644 --- a/.github/workflows/gen_fedora37_tag.yml +++ b/.github/workflows/gen_fedora37_tag.yml @@ -45,9 +45,14 @@ jobs: - name: "Build (Release mode)" shell: bash run: "cargo build --all --release" + - name: "Install cargo-nextest from Cargo" + uses: baptiste0928/cargo-install@v2 + with: + crate: "cargo-nextest" + cache-key: "fedora37" - name: "Test (Release mode)" shell: bash - run: "cargo test --all --release" + run: "cargo nextest run --all --release --no-fail-fast" - name: "Package" shell: bash run: "bash ci/deploy.sh" diff --git a/.github/workflows/gen_macos.yml b/.github/workflows/gen_macos.yml index d02452b19..dbb73d03b 100644 --- a/.github/workflows/gen_macos.yml +++ b/.github/workflows/gen_macos.yml @@ -43,9 +43,14 @@ jobs: - name: "Build (Release mode ARM)" shell: bash run: "cargo build --target aarch64-apple-darwin --all --release" + - name: "Install cargo-nextest from Cargo" + uses: baptiste0928/cargo-install@v2 + with: + crate: "cargo-nextest" + cache-key: "macos" - name: "Test (Release mode)" shell: bash - run: "cargo test --target x86_64-apple-darwin --all --release" + run: "cargo nextest run --all --release --no-fail-fast --target=x86_64-apple-darwin" - name: "Package" shell: bash run: "bash ci/deploy.sh" diff --git a/.github/workflows/gen_macos_continuous.yml b/.github/workflows/gen_macos_continuous.yml index 1d9235def..d672a4efb 100644 --- a/.github/workflows/gen_macos_continuous.yml +++ b/.github/workflows/gen_macos_continuous.yml @@ -46,9 +46,14 @@ jobs: - name: "Build (Release mode ARM)" shell: bash run: "cargo build --target aarch64-apple-darwin --all --release" + - name: "Install cargo-nextest from Cargo" + uses: baptiste0928/cargo-install@v2 + with: + crate: "cargo-nextest" + cache-key: "macos" - name: "Test (Release mode)" shell: bash - run: "cargo test --target x86_64-apple-darwin --all --release" + run: "cargo nextest run --all --release --no-fail-fast --target=x86_64-apple-darwin" - name: "Package" env: MACOS_APPLEID: ${{ secrets.MACOS_APPLEID }} diff --git a/.github/workflows/gen_macos_tag.yml b/.github/workflows/gen_macos_tag.yml index 6a30db7c9..8ceaa7d81 100644 --- a/.github/workflows/gen_macos_tag.yml +++ b/.github/workflows/gen_macos_tag.yml @@ -31,9 +31,14 @@ jobs: - name: "Build (Release mode ARM)" shell: bash run: "cargo build --target aarch64-apple-darwin --all --release" + - name: "Install cargo-nextest from Cargo" + uses: baptiste0928/cargo-install@v2 + with: + crate: "cargo-nextest" + cache-key: "macos" - name: "Test (Release mode)" shell: bash - run: "cargo test --target x86_64-apple-darwin --all --release" + run: "cargo nextest run --all --release --no-fail-fast --target=x86_64-apple-darwin" - name: "Package" env: MACOS_APPLEID: ${{ secrets.MACOS_APPLEID }} diff --git a/.github/workflows/gen_opensuse_leap.yml b/.github/workflows/gen_opensuse_leap.yml index c9d5b1b4e..13424a02c 100644 --- a/.github/workflows/gen_opensuse_leap.yml +++ b/.github/workflows/gen_opensuse_leap.yml @@ -25,7 +25,7 @@ on: jobs: build: runs-on: "ubuntu-latest" - container: "registry.opensuse.org/opensuse/leap:15.3" + container: "registry.opensuse.org/opensuse/leap:15.4" steps: - name: "Seed GITHUB_PATH to work around possible @action/core bug" @@ -65,9 +65,14 @@ jobs: - name: "Build (Release mode)" shell: bash run: "cargo build --all --release" + - name: "Install cargo-nextest from Cargo" + uses: baptiste0928/cargo-install@v2 + with: + crate: "cargo-nextest" + cache-key: "opensuse_leap" - name: "Test (Release mode)" shell: bash - run: "cargo test --all --release" + run: "cargo nextest run --all --release --no-fail-fast" - name: "Package" shell: bash run: "bash ci/deploy.sh" diff --git a/.github/workflows/gen_opensuse_leap_continuous.yml b/.github/workflows/gen_opensuse_leap_continuous.yml index f5d1f05d3..9a7f26c94 100644 --- a/.github/workflows/gen_opensuse_leap_continuous.yml +++ b/.github/workflows/gen_opensuse_leap_continuous.yml @@ -27,7 +27,7 @@ on: jobs: build: runs-on: "ubuntu-latest" - container: "registry.opensuse.org/opensuse/leap:15.3" + container: "registry.opensuse.org/opensuse/leap:15.4" env: BUILD_REASON: "Schedule" @@ -69,9 +69,14 @@ jobs: - name: "Build (Release mode)" shell: bash run: "cargo build --all --release" + - name: "Install cargo-nextest from Cargo" + uses: baptiste0928/cargo-install@v2 + with: + crate: "cargo-nextest" + cache-key: "opensuse_leap" - name: "Test (Release mode)" shell: bash - run: "cargo test --all --release" + run: "cargo nextest run --all --release --no-fail-fast" - name: "Package" shell: bash run: "bash ci/deploy.sh" diff --git a/.github/workflows/gen_opensuse_leap_tag.yml b/.github/workflows/gen_opensuse_leap_tag.yml index 7ba16b6f0..3274667a3 100644 --- a/.github/workflows/gen_opensuse_leap_tag.yml +++ b/.github/workflows/gen_opensuse_leap_tag.yml @@ -8,7 +8,7 @@ on: jobs: build: runs-on: "ubuntu-latest" - container: "registry.opensuse.org/opensuse/leap:15.3" + container: "registry.opensuse.org/opensuse/leap:15.4" steps: - name: "Seed GITHUB_PATH to work around possible @action/core bug" @@ -48,9 +48,14 @@ jobs: - name: "Build (Release mode)" shell: bash run: "cargo build --all --release" + - name: "Install cargo-nextest from Cargo" + uses: baptiste0928/cargo-install@v2 + with: + crate: "cargo-nextest" + cache-key: "opensuse_leap" - name: "Test (Release mode)" shell: bash - run: "cargo test --all --release" + run: "cargo nextest run --all --release --no-fail-fast" - name: "Package" shell: bash run: "bash ci/deploy.sh" diff --git a/.github/workflows/gen_opensuse_tumbleweed.yml b/.github/workflows/gen_opensuse_tumbleweed.yml index a7a54dff4..ab088a1ed 100644 --- a/.github/workflows/gen_opensuse_tumbleweed.yml +++ b/.github/workflows/gen_opensuse_tumbleweed.yml @@ -68,9 +68,14 @@ jobs: - name: "Build (Release mode)" shell: bash run: "cargo build --all --release" + - name: "Install cargo-nextest from Cargo" + uses: baptiste0928/cargo-install@v2 + with: + crate: "cargo-nextest" + cache-key: "opensuse_tumbleweed" - name: "Test (Release mode)" shell: bash - run: "cargo test --all --release" + run: "cargo nextest run --all --release --no-fail-fast" - name: "Package" shell: bash run: "bash ci/deploy.sh" diff --git a/.github/workflows/gen_opensuse_tumbleweed_continuous.yml b/.github/workflows/gen_opensuse_tumbleweed_continuous.yml index a1898ae87..b37af415f 100644 --- a/.github/workflows/gen_opensuse_tumbleweed_continuous.yml +++ b/.github/workflows/gen_opensuse_tumbleweed_continuous.yml @@ -72,9 +72,14 @@ jobs: - name: "Build (Release mode)" shell: bash run: "cargo build --all --release" + - name: "Install cargo-nextest from Cargo" + uses: baptiste0928/cargo-install@v2 + with: + crate: "cargo-nextest" + cache-key: "opensuse_tumbleweed" - name: "Test (Release mode)" shell: bash - run: "cargo test --all --release" + run: "cargo nextest run --all --release --no-fail-fast" - name: "Package" shell: bash run: "bash ci/deploy.sh" diff --git a/.github/workflows/gen_opensuse_tumbleweed_tag.yml b/.github/workflows/gen_opensuse_tumbleweed_tag.yml index 29e18406d..675687eac 100644 --- a/.github/workflows/gen_opensuse_tumbleweed_tag.yml +++ b/.github/workflows/gen_opensuse_tumbleweed_tag.yml @@ -51,9 +51,14 @@ jobs: - name: "Build (Release mode)" shell: bash run: "cargo build --all --release" + - name: "Install cargo-nextest from Cargo" + uses: baptiste0928/cargo-install@v2 + with: + crate: "cargo-nextest" + cache-key: "opensuse_tumbleweed" - name: "Test (Release mode)" shell: bash - run: "cargo test --all --release" + run: "cargo nextest run --all --release --no-fail-fast" - name: "Package" shell: bash run: "bash ci/deploy.sh" diff --git a/.github/workflows/gen_ubuntu20.04.yml b/.github/workflows/gen_ubuntu20.04.yml index e4b095c51..8fa6c7c2e 100644 --- a/.github/workflows/gen_ubuntu20.04.yml +++ b/.github/workflows/gen_ubuntu20.04.yml @@ -73,9 +73,14 @@ jobs: - name: "Build (Release mode)" shell: bash run: "cargo build --all --release" + - name: "Install cargo-nextest from Cargo" + uses: baptiste0928/cargo-install@v2 + with: + crate: "cargo-nextest" + cache-key: "ubuntu20.04" - name: "Test (Release mode)" shell: bash - run: "cargo test --all --release" + run: "cargo nextest run --all --release --no-fail-fast" - name: "Package" shell: bash run: "bash ci/deploy.sh" diff --git a/.github/workflows/gen_ubuntu20.04_continuous.yml b/.github/workflows/gen_ubuntu20.04_continuous.yml index 84774afef..1efda513b 100644 --- a/.github/workflows/gen_ubuntu20.04_continuous.yml +++ b/.github/workflows/gen_ubuntu20.04_continuous.yml @@ -77,9 +77,14 @@ jobs: - name: "Build (Release mode)" shell: bash run: "cargo build --all --release" + - name: "Install cargo-nextest from Cargo" + uses: baptiste0928/cargo-install@v2 + with: + crate: "cargo-nextest" + cache-key: "ubuntu20.04" - name: "Test (Release mode)" shell: bash - run: "cargo test --all --release" + run: "cargo nextest run --all --release --no-fail-fast" - name: "Package" shell: bash run: "bash ci/deploy.sh" diff --git a/.github/workflows/gen_ubuntu20.04_tag.yml b/.github/workflows/gen_ubuntu20.04_tag.yml index 69fb2368a..b0d121857 100644 --- a/.github/workflows/gen_ubuntu20.04_tag.yml +++ b/.github/workflows/gen_ubuntu20.04_tag.yml @@ -53,9 +53,14 @@ jobs: - name: "Build (Release mode)" shell: bash run: "cargo build --all --release" + - name: "Install cargo-nextest from Cargo" + uses: baptiste0928/cargo-install@v2 + with: + crate: "cargo-nextest" + cache-key: "ubuntu20.04" - name: "Test (Release mode)" shell: bash - run: "cargo test --all --release" + run: "cargo nextest run --all --release --no-fail-fast" - name: "Package" shell: bash run: "bash ci/deploy.sh" diff --git a/.github/workflows/gen_ubuntu22.04.yml b/.github/workflows/gen_ubuntu22.04.yml index 097997ae3..e031e1e70 100644 --- a/.github/workflows/gen_ubuntu22.04.yml +++ b/.github/workflows/gen_ubuntu22.04.yml @@ -68,9 +68,14 @@ jobs: - name: "Build (Release mode)" shell: bash run: "cargo build --all --release" + - name: "Install cargo-nextest from Cargo" + uses: baptiste0928/cargo-install@v2 + with: + crate: "cargo-nextest" + cache-key: "ubuntu22.04" - name: "Test (Release mode)" shell: bash - run: "cargo test --all --release" + run: "cargo nextest run --all --release --no-fail-fast" - name: "Package" shell: bash run: "bash ci/deploy.sh" diff --git a/.github/workflows/gen_ubuntu22.04_continuous.yml b/.github/workflows/gen_ubuntu22.04_continuous.yml index 321de140d..88a0b7a29 100644 --- a/.github/workflows/gen_ubuntu22.04_continuous.yml +++ b/.github/workflows/gen_ubuntu22.04_continuous.yml @@ -72,9 +72,14 @@ jobs: - name: "Build (Release mode)" shell: bash run: "cargo build --all --release" + - name: "Install cargo-nextest from Cargo" + uses: baptiste0928/cargo-install@v2 + with: + crate: "cargo-nextest" + cache-key: "ubuntu22.04" - name: "Test (Release mode)" shell: bash - run: "cargo test --all --release" + run: "cargo nextest run --all --release --no-fail-fast" - name: "Package" shell: bash run: "bash ci/deploy.sh" diff --git a/.github/workflows/gen_ubuntu22.04_tag.yml b/.github/workflows/gen_ubuntu22.04_tag.yml index c540ef83d..cf957370b 100644 --- a/.github/workflows/gen_ubuntu22.04_tag.yml +++ b/.github/workflows/gen_ubuntu22.04_tag.yml @@ -51,9 +51,14 @@ jobs: - name: "Build (Release mode)" shell: bash run: "cargo build --all --release" + - name: "Install cargo-nextest from Cargo" + uses: baptiste0928/cargo-install@v2 + with: + crate: "cargo-nextest" + cache-key: "ubuntu22.04" - name: "Test (Release mode)" shell: bash - run: "cargo test --all --release" + run: "cargo nextest run --all --release --no-fail-fast" - name: "Package" shell: bash run: "bash ci/deploy.sh" diff --git a/.github/workflows/gen_windows.yml b/.github/workflows/gen_windows.yml index 63404cd63..d30bf5b51 100644 --- a/.github/workflows/gen_windows.yml +++ b/.github/workflows/gen_windows.yml @@ -39,9 +39,14 @@ jobs: PATH C:\Strawberry\perl\bin;%PATH% cargo build --all --release + - name: "Install cargo-nextest from Cargo" + uses: baptiste0928/cargo-install@v2 + with: + crate: "cargo-nextest" + cache-key: "windows" - name: "Test (Release mode)" shell: bash - run: "cargo test --all --release" + run: "cargo nextest run --all --release --no-fail-fast" - name: "Package" shell: bash run: "bash ci/deploy.sh" diff --git a/.github/workflows/gen_windows_continuous.yml b/.github/workflows/gen_windows_continuous.yml index 941ea3744..5fb188ad9 100644 --- a/.github/workflows/gen_windows_continuous.yml +++ b/.github/workflows/gen_windows_continuous.yml @@ -43,9 +43,14 @@ jobs: PATH C:\Strawberry\perl\bin;%PATH% cargo build --all --release + - name: "Install cargo-nextest from Cargo" + uses: baptiste0928/cargo-install@v2 + with: + crate: "cargo-nextest" + cache-key: "windows" - name: "Test (Release mode)" shell: bash - run: "cargo test --all --release" + run: "cargo nextest run --all --release --no-fail-fast" - name: "Package" shell: bash run: "bash ci/deploy.sh" diff --git a/.github/workflows/gen_windows_tag.yml b/.github/workflows/gen_windows_tag.yml index 9c6e82059..8e63045e3 100644 --- a/.github/workflows/gen_windows_tag.yml +++ b/.github/workflows/gen_windows_tag.yml @@ -29,9 +29,14 @@ jobs: PATH C:\Strawberry\perl\bin;%PATH% cargo build --all --release + - name: "Install cargo-nextest from Cargo" + uses: baptiste0928/cargo-install@v2 + with: + crate: "cargo-nextest" + cache-key: "windows" - name: "Test (Release mode)" shell: bash - run: "cargo test --all --release" + run: "cargo nextest run --all --release --no-fail-fast" - name: "Package" shell: bash run: "bash ci/deploy.sh" diff --git a/.github/workflows/termwiz.yml b/.github/workflows/termwiz.yml index 2e94bffe6..3905396cc 100644 --- a/.github/workflows/termwiz.yml +++ b/.github/workflows/termwiz.yml @@ -38,11 +38,15 @@ jobs: workspaces: | termwiz key: "termwiz-${{ runner.os }}" + - name: "Install cargo-nextest from Cargo" + uses: baptiste0928/cargo-install@v2 + with: + crate: "cargo-nextest" - name: Build run: | source $HOME/.cargo/env cargo build -p termwiz --all-features - cargo test -p termwiz --all-features + cargo nextest run --no-fail-fast --package termwiz --all-features fuzz-termwiz: runs-on: ubuntu-latest diff --git a/.github/workflows/wezterm_ssh.yml b/.github/workflows/wezterm_ssh.yml index 6d6805ef6..3f96c444b 100644 --- a/.github/workflows/wezterm_ssh.yml +++ b/.github/workflows/wezterm_ssh.yml @@ -36,11 +36,15 @@ jobs: workspaces: | wezterm-ssh key: "wezterm-ssh-libssh-rs-${{ runner.os }}" + - name: "Install cargo-nextest from Cargo" + uses: baptiste0928/cargo-install@v2 + with: + crate: "cargo-nextest" - name: Build run: | source $HOME/.cargo/env cargo build -p wezterm-ssh --no-default-features --features "libssh-rs vendored-openssl-libssh-rs" - cargo test -p wezterm-ssh --no-default-features --features "libssh-rs vendored-openssl-libssh-rs" + cargo nextest run --no-fail-fast -p wezterm-ssh --no-default-features --features "libssh-rs vendored-openssl-libssh-rs" build-wezterm-ssh-feature-ssh2: runs-on: ubuntu-latest steps: @@ -54,9 +58,13 @@ jobs: workspaces: | wezterm-ssh key: "wezterm-ssh-ssh2-${{ runner.os }}" + - name: "Install cargo-nextest from Cargo" + uses: baptiste0928/cargo-install@v2 + with: + crate: "cargo-nextest" - name: Build run: | source $HOME/.cargo/env cargo build -p wezterm-ssh --no-default-features --features "ssh2 vendored-openssl-ssh2" - cargo test -p wezterm-ssh --no-default-features --features "ssh2 vendored-openssl-ssh2" + cargo nextest run --no-fail-fast -p wezterm-ssh --no-default-features --features "ssh2 vendored-openssl-ssh2" diff --git a/ci/generate-workflows.py b/ci/generate-workflows.py index d8e49bfcf..92b146225 100755 --- a/ci/generate-workflows.py +++ b/ci/generate-workflows.py @@ -141,6 +141,18 @@ class CheckoutStep(ActionStep): super().__init__(name, action="actions/checkout@v3", params=params) +class InstallCrateStep(ActionStep): + def __init__(self, crate: str, key: str, version=None): + params = {"crate": crate, "cache-key": key} + if version is not None: + params["version"] = version + super().__init__( + f"Install {crate} from Cargo", + action="baptiste0928/cargo-install@v2", + params=params + ) + + class Job(object): def __init__(self, runs_on, container=None, steps=None, env=None): self.runs_on = runs_on @@ -425,22 +437,21 @@ cargo build --all --release""", ] def test_all_release(self): + run = "cargo nextest run --all --release --no-fail-fast" if "macos" in self.name: - return [ - RunStep( - name="Test (Release mode)", - run="cargo test --target x86_64-apple-darwin --all --release", - ) - ] + run += " --target=x86_64-apple-darwin" if self.name == "centos7": - enable = "source /opt/rh/devtoolset-9/enable && " - else: - enable = "" + run = "source /opt/rh/devtoolset-9/enable\n" + run return [ + # Install cargo-nextest + InstallCrateStep("cargo-nextest", key=self.name), + # Run tests RunStep( - name="Test (Release mode)", run=enable + "cargo test --all --release" - ) + name="Test (Release mode)", + run=run, + ), ] + def package(self, trusted=False): steps = [] @@ -908,7 +919,7 @@ TARGETS = [ Target(container="fedora:36"), Target(container="fedora:37"), Target(container="alpine:3.15"), - Target(name="opensuse_leap", container="registry.opensuse.org/opensuse/leap:15.3"), + Target(name="opensuse_leap", container="registry.opensuse.org/opensuse/leap:15.4"), Target( name="opensuse_tumbleweed", container="registry.opensuse.org/opensuse/tumbleweed",