ci: run version constraint test partitioned (#2052)

This commit is contained in:
Matthias Seitz
2023-03-31 16:15:50 +02:00
committed by GitHub
parent 6f0064f687
commit 4f50f7213b

View File

@ -16,12 +16,15 @@ name: sanity
jobs: jobs:
dep-version-constraints: dep-version-constraints:
runs-on: ubuntu-latest runs-on: ubuntu-latest
name: dep version constraints name: dep version constraints test (partition ${{ matrix.partition }}/${{ strategy.job-total }})
strategy:
matrix:
partition: [1, 2, 3]
steps: steps:
- name: Checkout sources - name: Checkout sources
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Install toolchain - name: Install toolchain
uses: dtolnay/rust-toolchain@nightly uses: dtolnay/rust-toolchain@stable
with: with:
components: llvm-tools-preview components: llvm-tools-preview
- uses: Swatinem/rust-cache@v2 - uses: Swatinem/rust-cache@v2
@ -46,7 +49,10 @@ jobs:
run: cargo update run: cargo update
- name: Run tests - name: Run tests
run: cargo nextest run --locked --workspace --all-features run: |
cargo nextest run --locked --workspace --all-features \
--partition hash:${{ matrix.partition }}/${{ strategy.job-total }} \
-E 'kind(lib)' -E 'kind(bin)' -E 'kind(proc-macro)'
- uses: JasonEtco/create-an-issue@v2 - uses: JasonEtco/create-an-issue@v2
if: ${{ failure() }} if: ${{ failure() }}