Skip to content

Bump cargo dependencies #299

Bump cargo dependencies

Bump cargo dependencies #299

Workflow file for this run

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