Skip to content

add rust fmt and clippy to workflow #95

add rust fmt and clippy to workflow

add rust fmt and clippy to workflow #95

Workflow file for this run

name: Rust
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- run: sudo apt-get update && sudo apt-get install -y libclang-dev libgtk-3-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libxkbcommon-dev libssl-dev && sudo apt-get install libudev-dev && cargo install cargo-bundle
- name: Check
run: cargo check --verbose
- name: Format
run: cargo fmt --all -- --check --verbose
- name: Clippy
run: cargo clippy -- -D warnings --verbose
- name: Run tests
run: cargo test --verbose