trying out running tests

This commit is contained in:
Michael Neale
2025-11-20 08:57:31 +11:00
parent 14c8d066c9
commit 3643dad354
3 changed files with 278 additions and 0 deletions

53
.github/workflows/quick-check.yml vendored Normal file
View File

@@ -0,0 +1,53 @@
name: Quick Check
on:
push:
branches-ignore:
- main
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
quick-check:
name: Quick Check
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: Cache cargo
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-quick-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-quick-
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y libx11-dev libxdo-dev libxcb-shape0-dev libxcb-xfixes0-dev
- name: Check formatting
run: cargo fmt --all -- --check
- name: Run clippy
run: cargo clippy --workspace --all-targets -- -D warnings
continue-on-error: true
- name: Check build
run: cargo check --workspace --all-targets
- name: Run tests
run: cargo test --workspace --lib --tests