mirror of
https://github.com/openai/codex.git
synced 2026-09-17 12:23:33 +00:00
chore: try switching to cargo nextest
This commit is contained in:
11
.github/workflows/rust-ci.yml
vendored
11
.github/workflows/rust-ci.yml
vendored
@@ -160,12 +160,21 @@ jobs:
|
||||
find . -name Cargo.toml -mindepth 2 -maxdepth 2 -print0 \
|
||||
| xargs -0 -n1 -I{} bash -c 'cd "$(dirname "{}")" && cargo check --profile ${{ matrix.profile }}'
|
||||
|
||||
- uses: taiki-e/install-action@v2
|
||||
with:
|
||||
tool: nextest
|
||||
|
||||
- name: cargo test
|
||||
id: test
|
||||
# `cargo test` takes too long for release builds to run them on every PR
|
||||
if: ${{ matrix.profile != 'release' }}
|
||||
continue-on-error: true
|
||||
run: cargo test --all-features --target ${{ matrix.target }} --profile ${{ matrix.profile }}
|
||||
run: |
|
||||
if [ "${{ matrix.profile }}" = "release" ]; then
|
||||
cargo nextest run --all-features --target ${{ matrix.target }} --release
|
||||
else
|
||||
cargo nextest run --all-features --target ${{ matrix.target }}
|
||||
fi
|
||||
env:
|
||||
RUST_BACKTRACE: 1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user