Skip to content

feat: add GitHub Actions for CI verification workflow #16

feat: add GitHub Actions for CI verification workflow

feat: add GitHub Actions for CI verification workflow #16

Workflow file for this run

name: CI
on:
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
check:
name: fmt + clippy + test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
- name: Install system dependencies
run: sudo apt-get update && sudo apt-get install -y libdbus-1-dev pkg-config
- name: Check formatting
run: cargo fmt -- --check
- name: Clippy
run: cargo clippy --all-targets --keep-going -- -D warnings
- name: Run tests
run: cargo test --workspace --no-fail-fast