From 0ec469f9f9f0a3622299fad2111cbd543e644d6e Mon Sep 17 00:00:00 2001 From: JP-Ellis Date: Wed, 11 Dec 2024 19:45:59 +1100 Subject: [PATCH] chore: combine compatibility suite tests The building of dependencies takes a lot of time, providing no benefit to splitting the CI in each version. Instead, combine them all and use nextest to speed up tests. Signed-off-by: JP-Ellis --- .github/workflows/compatability-suite.yml | 43 +++-------------------- 1 file changed, 5 insertions(+), 38 deletions(-) diff --git a/.github/workflows/compatability-suite.yml b/.github/workflows/compatability-suite.yml index 832c9358..d20b1bbe 100644 --- a/.github/workflows/compatability-suite.yml +++ b/.github/workflows/compatability-suite.yml @@ -21,46 +21,13 @@ jobs: strategy: fail-fast: false matrix: - operating-system: [ ubuntu-latest, windows-latest, macos-13, macos-14 ] - steps: - - uses: actions/checkout@v2 - - uses: dtolnay/rust-toolchain@stable - - name: Run Cucumber - run: cargo test --test v1* - working-directory: compatibility-suite - v2: - runs-on: ${{ matrix.operating-system }} - strategy: - fail-fast: false - matrix: - operating-system: [ ubuntu-latest, windows-latest, macos-13, macos-14 ] - steps: - - uses: actions/checkout@v2 - - uses: dtolnay/rust-toolchain@stable - - name: Run Cucumber - run: cargo test --test v2* - working-directory: compatibility-suite - v3: - runs-on: ${{ matrix.operating-system }} - strategy: - fail-fast: false - matrix: - operating-system: [ ubuntu-latest, windows-latest, macos-13, macos-14 ] - steps: - - uses: actions/checkout@v2 - - uses: dtolnay/rust-toolchain@stable - - name: Run Cucumber - run: cargo test --test v3* - working-directory: compatibility-suite - v4: - runs-on: ${{ matrix.operating-system }} - strategy: - fail-fast: false - matrix: - operating-system: [ ubuntu-latest, windows-latest, macos-13, macos-14 ] + operating-system: [ubuntu-latest, windows-latest, macos-13, macos-14] steps: - uses: actions/checkout@v2 - uses: dtolnay/rust-toolchain@stable + - uses: taiki-e/install-action@v2 + with: + tool: cargo-nextest - name: Run Cucumber - run: cargo test --test v4* + run: cargo nextest run working-directory: compatibility-suite