mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 19:09:54 +00:00
ci: run version constraint test partitioned (#2052)
This commit is contained in:
12
.github/workflows/sanity.yml
vendored
12
.github/workflows/sanity.yml
vendored
@ -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() }}
|
||||||
|
|||||||
Reference in New Issue
Block a user