Skip to content

Improve Logs + Reduce Logging Noise #1106

Improve Logs + Reduce Logging Noise

Improve Logs + Reduce Logging Noise #1106

Workflow file for this run

name: tests
permissions:
contents: read
on:
pull_request:
merge_group:
push:
branches: [main]
env:
CARGO_TERM_COLOR: always
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
cargo-next-test:
name: Cargo test
runs-on: ubuntu-latest
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0
with:
egress-policy: audit
- name: Fetch Repository
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
- name: Install stable toolchain
uses: actions-rust-lang/setup-rust-toolchain@1780873c7b576612439a134613cc4cc74ce5538c # v1.15.2
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@8b0419c685ef46cb79ec93fbdc131174afceb730 # v1.6.0
- name: Cache cargo-nextest binary
id: cache-cargo-nextest
uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1
with:
path: ~/.cargo/bin/cargo-nextest
key: ${{ runner.os }}-cargo-nextest-${{ hashFiles('**/Cargo.lock') }}
- name: Install cargo-nextest
if: steps.cache-cargo-nextest.outputs.cache-hit != 'true'
uses: taiki-e/install-action@b9c5db3aef04caffaf95a1d03931de10fb2a140f # v2.65.1
with:
tool: cargo-nextest
- name: Cargo test
run: cargo nextest run --locked --all-targets --all-features --no-tests=pass --no-fail-fast
# https://github.com/rust-lang/cargo/issues/6669
- name: Run doc tests
run: cargo test --locked --doc --all-features --no-fail-fast