Skip to content

Outward-Facing Documentation — Related Work and Communication Strategy #663

Outward-Facing Documentation — Related Work and Communication Strategy

Outward-Facing Documentation — Related Work and Communication Strategy #663

Workflow file for this run

name: Tests
on:
pull_request: {}
push:
branches: [main]
env:
CARGO_INCREMENTAL: 0
CARGO_TERM_COLOR: always
RUST_BACKTRACE: short
CARGO_NET_RETRY: 10
RUSTUP_MAX_RETRIES: 10
# Cancel in-progress runs when a new commit is pushed to the same PR, branch, or tag.
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions:
contents: read
# To minimize supply-chain exposure this workflow uses only GitHub's own
# first-party checkout action; every toolchain and tool is installed with the
# rustup/cargo already present on the runner.
jobs:
fmt:
name: Rustfmt (nightly)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install nightly rustfmt
run: rustup toolchain install nightly --profile minimal --component rustfmt
- run: cargo +nightly fmt --all -- --check
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install pinned toolchain
run: rustup toolchain install
- name: Clippy (all features)
run: cargo clippy --all-features --all-targets -- -D warnings
- name: Clippy (no default features)
run: cargo clippy --no-default-features --all-targets -- -D warnings
test:
name: Test (nextest)
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- name: Install pinned toolchain
run: rustup toolchain install
# Prebuilt binary from the official nextest distribution.
- name: Install cargo-nextest
run: curl -LsSf https://get.nexte.st/latest/linux | tar zxf - -C ${CARGO_HOME:-~/.cargo}/bin
# Runs the whole workspace, including the trybuild compile-fail fixtures in
# cgp-compile-fail-tests (an ordinary integration test nextest picks up).
- name: Run tests
run: cargo nextest run --all-features --no-fail-fast --workspace