image: "archlinux:latest"
variables:
CARGO_TERM_COLOR: always
stages:
- lint
- test
format:
before_script:
- pacman -Syu --needed --noconfirm rust cargo-audit pkgconf
stage: lint
script:
- cargo fmt --all -- --check
clippy:
before_script:
- pacman -Syu --needed --noconfirm rust cargo-audit pkgconf
stage: lint
script:
- cargo clippy --all -- -D warnings
audit:
before_script:
- pacman -Syu --needed --noconfirm cargo-audit
stage: lint
script:
- cargo audit --ignore RUSTSEC-2026-0074
test:
before_script:
- pacman -Syu --needed --noconfirm rust pkgconf qemu-base libguestfs
stage: test
tags:
- vm
script:
- cargo test -- --test-threads 1