-
Notifications
You must be signed in to change notification settings - Fork 3
26 lines (25 loc) · 914 Bytes
/
ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
name: test suite
on: [push, pull_request]
jobs:
clippy:
name: cargo clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
with:
components: clippy
# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/customizing-github-hosted-runners#installing-software-on-ubuntu-runners
# is explicit that we must run `apt-get update` before trying to install packages
- run: sudo apt-get update
- run: sudo apt-get install -y pkg-config libudev-dev
- run: cargo clippy -- --deny warnings
test:
name: cargo test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
- run: sudo apt-get update
- run: sudo apt-get install -y pkg-config libudev-dev
- run: cargo test --all-features --locked