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.
40 lines
1.1 KiB
YAML
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
|