phoebus_os/.forgejo/workflows/ci.yml
Phoebus 875278b9a9 ci: make the Rust suite the only quality gate
Remove the Bash test suite and shellcheck from CI, the pre-commit hook, the
Makefile, agent-commit and publish. CI now runs cargo fmt, clippy and test.
2026-09-20 03:57:01 -07:00

40 lines
1.1 KiB
YAML

# Forgejo Actions CI. Runs only once an Actions runner is registered with this
# label (see docs/DEVELOPMENT.md). It mirrors the local quality gates.
#
# If your runner uses different labels, change `runs-on` accordingly.
name: ci
on:
push:
branches: [main]
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Rust format
run: |
if command -v cargo >/dev/null 2>&1; then
cd installer-rs && cargo fmt --all -- --check
else
echo "cargo not installed on this runner; skipping"
fi
- name: Rust clippy
run: |
if command -v cargo >/dev/null 2>&1; then
cd installer-rs && cargo clippy --workspace --all-targets
else
echo "cargo not installed on this runner; skipping"
fi
- name: Rust test suite
run: |
if command -v cargo >/dev/null 2>&1; then
cd installer-rs && cargo test --workspace
else
echo "cargo not installed on this runner; skipping"
fi