| 1 | name: CI |
| 2 | |
| 3 | # Formatting, lints and tests on every push to master and every pull request. |
| 4 | |
| 5 | on: |
| 6 | push: |
| 7 | branches: [master] |
| 8 | pull_request: |
| 9 | |
| 10 | jobs: |
| 11 | check: |
| 12 | runs-on: ubuntu-22.04 |
| 13 | steps: |
| 14 | - uses: actions/checkout@v6 |
| 15 | - uses: dtolnay/rust-toolchain@stable |
| 16 | with: |
| 17 | components: clippy, rustfmt |
| 18 | - run: sudo apt-get update && sudo apt-get install -y pkg-config libwayland-dev libxkbcommon-dev |
| 19 | - run: cargo fmt --all -- --check |
| 20 | - run: cargo clippy --workspace --all-targets --locked -- -D warnings |
| 21 | - run: cargo test --workspace --locked |
| 22 | - run: sh -n install.sh |