Skip to content

Update dependencies via cargo update #1905

Update dependencies via cargo update

Update dependencies via cargo update #1905

Workflow file for this run

name: CI
on:
push:
branches:
- "**"
pull_request:
branches:
- main
env:
CARGO_TERM_COLOR: always
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
- uses: actions/checkout@v6
- name: Check formatting
run: cargo fmt -- --check --config group_imports=StdExternalCrate
- name: Clippy
run: cargo clippy --tests -- -D warnings
- name: Detect Cargo.lock changes
run: git diff-index --quiet HEAD --
- name: markdownlint
uses: DavidAnson/markdownlint-cli2-action@v23
with:
globs: '**/*.md'
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- uses: actions/checkout@v6
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
coverage:
runs-on: ubuntu-latest
steps:
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- uses: actions/checkout@v5
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@v2
with:
tool: cargo-llvm-cov
- name: Generate code coverage
run: cargo llvm-cov --workspace --lcov --output-path lcov.info
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v6
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
files: lcov.info
fail_ci_if_error: true