mirror of
https://github.com/wez/wezterm.git
synced 2024-08-17 10:10:23 +03:00
ci: Use nextest (#3342)
* ci: Use cargo-nextest to improve testing times * chore: Regenerate workflows * chore: Use nextest in non generated workflows * fix(nextest): No fail fast * fix: Caching of nextest ignores conatiner * chore: Regenerate workflows * fix(ci): Wrong input to cargo-install action * fix: Merge conflicts * fix(flaky-tests): Try updating OpenSUSE Leap to 15.4
This commit is contained in:
parent
499e5f73d0
commit
64b8749eb3
7
.github/workflows/gen_alpine3.15.yml
vendored
7
.github/workflows/gen_alpine3.15.yml
vendored
@ -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"
|
||||
|
@ -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"
|
||||
|
7
.github/workflows/gen_alpine3.15_tag.yml
vendored
7
.github/workflows/gen_alpine3.15_tag.yml
vendored
@ -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"
|
||||
|
9
.github/workflows/gen_centos7.yml
vendored
9
.github/workflows/gen_centos7.yml
vendored
@ -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"
|
||||
|
9
.github/workflows/gen_centos7_continuous.yml
vendored
9
.github/workflows/gen_centos7_continuous.yml
vendored
@ -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"
|
||||
|
9
.github/workflows/gen_centos7_tag.yml
vendored
9
.github/workflows/gen_centos7_tag.yml
vendored
@ -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"
|
||||
|
7
.github/workflows/gen_centos8.yml
vendored
7
.github/workflows/gen_centos8.yml
vendored
@ -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"
|
||||
|
7
.github/workflows/gen_centos8_continuous.yml
vendored
7
.github/workflows/gen_centos8_continuous.yml
vendored
@ -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"
|
||||
|
7
.github/workflows/gen_centos8_tag.yml
vendored
7
.github/workflows/gen_centos8_tag.yml
vendored
@ -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"
|
||||
|
7
.github/workflows/gen_centos9.yml
vendored
7
.github/workflows/gen_centos9.yml
vendored
@ -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"
|
||||
|
7
.github/workflows/gen_centos9_continuous.yml
vendored
7
.github/workflows/gen_centos9_continuous.yml
vendored
@ -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"
|
||||
|
7
.github/workflows/gen_centos9_tag.yml
vendored
7
.github/workflows/gen_centos9_tag.yml
vendored
@ -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"
|
||||
|
7
.github/workflows/gen_debian10.3.yml
vendored
7
.github/workflows/gen_debian10.3.yml
vendored
@ -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"
|
||||
|
@ -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"
|
||||
|
7
.github/workflows/gen_debian10.3_tag.yml
vendored
7
.github/workflows/gen_debian10.3_tag.yml
vendored
@ -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"
|
||||
|
7
.github/workflows/gen_debian11.yml
vendored
7
.github/workflows/gen_debian11.yml
vendored
@ -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"
|
||||
|
@ -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"
|
||||
|
7
.github/workflows/gen_debian11_tag.yml
vendored
7
.github/workflows/gen_debian11_tag.yml
vendored
@ -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"
|
||||
|
7
.github/workflows/gen_fedora35.yml
vendored
7
.github/workflows/gen_fedora35.yml
vendored
@ -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"
|
||||
|
@ -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"
|
||||
|
7
.github/workflows/gen_fedora35_tag.yml
vendored
7
.github/workflows/gen_fedora35_tag.yml
vendored
@ -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"
|
||||
|
7
.github/workflows/gen_fedora36.yml
vendored
7
.github/workflows/gen_fedora36.yml
vendored
@ -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"
|
||||
|
@ -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"
|
||||
|
7
.github/workflows/gen_fedora36_tag.yml
vendored
7
.github/workflows/gen_fedora36_tag.yml
vendored
@ -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"
|
||||
|
7
.github/workflows/gen_fedora37.yml
vendored
7
.github/workflows/gen_fedora37.yml
vendored
@ -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"
|
||||
|
@ -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"
|
||||
|
7
.github/workflows/gen_fedora37_tag.yml
vendored
7
.github/workflows/gen_fedora37_tag.yml
vendored
@ -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"
|
||||
|
7
.github/workflows/gen_macos.yml
vendored
7
.github/workflows/gen_macos.yml
vendored
@ -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"
|
||||
|
7
.github/workflows/gen_macos_continuous.yml
vendored
7
.github/workflows/gen_macos_continuous.yml
vendored
@ -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 }}
|
||||
|
7
.github/workflows/gen_macos_tag.yml
vendored
7
.github/workflows/gen_macos_tag.yml
vendored
@ -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 }}
|
||||
|
9
.github/workflows/gen_opensuse_leap.yml
vendored
9
.github/workflows/gen_opensuse_leap.yml
vendored
@ -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"
|
||||
|
@ -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"
|
||||
|
9
.github/workflows/gen_opensuse_leap_tag.yml
vendored
9
.github/workflows/gen_opensuse_leap_tag.yml
vendored
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
7
.github/workflows/gen_ubuntu20.04.yml
vendored
7
.github/workflows/gen_ubuntu20.04.yml
vendored
@ -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"
|
||||
|
@ -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"
|
||||
|
7
.github/workflows/gen_ubuntu20.04_tag.yml
vendored
7
.github/workflows/gen_ubuntu20.04_tag.yml
vendored
@ -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"
|
||||
|
7
.github/workflows/gen_ubuntu22.04.yml
vendored
7
.github/workflows/gen_ubuntu22.04.yml
vendored
@ -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"
|
||||
|
@ -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"
|
||||
|
7
.github/workflows/gen_ubuntu22.04_tag.yml
vendored
7
.github/workflows/gen_ubuntu22.04_tag.yml
vendored
@ -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"
|
||||
|
7
.github/workflows/gen_windows.yml
vendored
7
.github/workflows/gen_windows.yml
vendored
@ -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"
|
||||
|
7
.github/workflows/gen_windows_continuous.yml
vendored
7
.github/workflows/gen_windows_continuous.yml
vendored
@ -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"
|
||||
|
7
.github/workflows/gen_windows_tag.yml
vendored
7
.github/workflows/gen_windows_tag.yml
vendored
@ -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"
|
||||
|
6
.github/workflows/termwiz.yml
vendored
6
.github/workflows/termwiz.yml
vendored
@ -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
|
||||
|
12
.github/workflows/wezterm_ssh.yml
vendored
12
.github/workflows/wezterm_ssh.yml
vendored
@ -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"
|
||||
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user