Files
g3/.github/workflows/quick-check.yml
2025-11-20 08:57:31 +11:00

54 lines
1.2 KiB
YAML

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