Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/nextest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,11 @@ test-threads = 8
[profile.ci.junit]
# Store JUnit XML report for CI
path = "target/nextest/ci/junit.xml"

[profile.ci-partition]
# Used by the partitioned test matrix in CI (unit tests only).
# Each shard receives --partition hash:K/4 on the command line.
test-threads = 8

[profile.ci-partition.junit]
path = "target/nextest/ci/junit.xml"
18 changes: 12 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -187,24 +187,30 @@ jobs:
retention-days: 1

test:
name: Test (${{ matrix.os }})
name: "Test (shard ${{ matrix.partition }})"
needs: [detect-changes, lint-fmt, lint-clippy, build-tests]
if: needs.detect-changes.outputs.run-full-ci == 'true'
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
partition: ["1/4", "2/4", "3/4", "4/4"]
steps:
- uses: actions/checkout@v6
- uses: taiki-e/install-action@9786bf093d06fe2c715bc12b6ff3b97a491cab4f # nextest
- name: Download test archive
uses: actions/download-artifact@v7
with:
name: nextest-archive-${{ matrix.os }}
- name: Run tests
run: cargo nextest run --config-file .github/nextest.toml --archive-file nextest-archive.tar.zst --workspace-remap .
name: nextest-archive-ubuntu-latest
- name: "Run tests (shard ${{ matrix.partition }})"
run: |
cargo nextest run \
--config-file .github/nextest.toml \
--archive-file nextest-archive.tar.zst \
--workspace-remap . \
--profile ci-partition \
--partition hash:${{ matrix.partition }}

integration:
name: Integration Tests
Expand Down
Loading