Skip to content

add testing to the ci #22

add testing to the ci

add testing to the ci #22

Workflow file for this run

name: action
on: [push, pull_request]
jobs:
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- run: sudo apt-get install libudev-dev libseat-dev libdisplay-info-dev libinfo-dev xkbcommon-dev gbm-dev
- name: build
run: cargo clippy --workspace -- -D warnings
- name: test
run: cargo test --workspace
fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- run: cargo fmt --all -- --check