Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
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
7 changes: 7 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,13 @@ keyring = { version = "3.0" }
inherits = "release"
lto = "thin"

[[bin]]
name = "mock-probe-verus"
path = "tests/helpers/mock_probe_verus.rs"
test = false
doc = false
bench = false

[dev-dependencies]
tempfile = "3.24.0"

Loading