add linting CI jobs
This commit is contained in:
parent
9974b2f99f
commit
aa2d9fe374
12 changed files with 98 additions and 68 deletions
29
.github/workflows/ci.yml
vendored
Normal file
29
.github/workflows/ci.yml
vendored
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
name: Continuous Integration
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
formatting:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: dtolnay/rust-toolchain@nightly
|
||||
with:
|
||||
components: rustfmt
|
||||
- name: Run rustfmt
|
||||
run: cargo +nightly fmt --all -- --check
|
||||
|
||||
linting:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: dtolnay/rust-toolchain@master
|
||||
with:
|
||||
toolchain: nightly-2023-11-18
|
||||
components: clippy
|
||||
- name: install dependencies
|
||||
run: sudo apt install -y libxkbcommon-dev libwayland-dev libdbus-1-dev libpulse-dev
|
||||
- uses: actions-rs-plus/clippy-check@v2
|
||||
with:
|
||||
toolchain: nightly-2023-11-18
|
||||
args: --all --all-targets --all-features
|
||||
Loading…
Add table
Add a link
Reference in a new issue