Bump cargo dependencies #297
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
name: CI | |
jobs: | |
test: | |
needs: [fmt, lints] | |
name: Run test suite | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: sudo apt-get update && sudo apt-get install libudev-dev libinput-dev | |
- name: Install stable toolchain | |
uses: dtolnay/rust-toolchain@stable | |
- name: cargo test | |
run: cargo test | |
fmt: | |
name: Check format | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v3 | |
- name: Install stable toolchain | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
components: rustfmt | |
- name: Run cargo fmt | |
run: cargo fmt --all -- --check | |
lints: | |
name: Check linting | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v3 | |
- name: Install stable toolchain | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
components: clippy | |
- name: Install dependencies for clippy | |
run: sudo apt-get update && sudo apt-get install libudev-dev libinput-dev | |
- name: Run cargo clippy | |
run: cargo clippy -- -D warnings -W clippy::pedantic | |
- name: Run cargo clippy (tests) | |
run: cargo clippy --tests -- -D warnings -W clippy::pedantic |