Skip to content

Merge pull request #1 from timrogers/dependabot/github_actions/action… #6

Merge pull request #1 from timrogers/dependabot/github_actions/action…

Merge pull request #1 from timrogers/dependabot/github_actions/action… #6

Workflow file for this run

name: Lint
on: push
env:
CARGO_TERM_COLOR: always
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install libudev-dev
run: sudo apt-get update && sudo apt-get install libudev-dev
- name: Install latest Rust nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
components: rustc, rustfmt
- name: Run cargo check
uses: actions-rs/cargo@v1
with:
command: check
- name: Run cargo fmt -- --check
uses: actions-rs/cargo@v1
with:
command: fmt
args: -- --check