Skip to content

test: read the dispatch verdict, not the log line's substrings #704

test: read the dispatch verdict, not the log line's substrings

test: read the dispatch verdict, not the log line's substrings #704

Workflow file for this run

name: rust CI
on:
push:
pull_request:
env:
CARGO_TERM_COLOR: always
permissions:
contents: read
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: clippy,rustfmt
- run: cargo fmt -- --check
- run: cargo clippy --all-targets -- -D warnings
compile:
name: Compile
runs-on: ubuntu-latest
needs: [lint]
steps:
- uses: actions/checkout@v7
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- run: cargo build --verbose --release
test:
name: Test
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- windows-latest
- macos-latest
toolchain:
- stable
- nightly
runs-on: ${{ matrix.os }}
needs: [lint]
steps:
- uses: actions/checkout@v7
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ matrix.toolchain }}
- name: Install ccache on Ubuntu
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y ccache
- name: Run integration tests
run: |
cargo build --verbose
cargo test --verbose
env:
RUST_LOG: debug
doc:
name: Generate Documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- run: cargo doc --no-deps
spellcheck:
name: Spell Check Documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Install Codespell
run: pip install codespell
- name: Run Codespell
run: codespell
audit:
name: Audit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- uses: taiki-e/install-action@v2
with:
tool: cargo-deny
- name: Run Cargo Deny
run: cargo deny check advisories licenses