continuwuity/.forgejo/workflows/prek-checks.yml
Ginger 9f133cf75b
All checks were successful
Mirror Container Images / mirror-images (push) Successful in 18s
Documentation / Build and Deploy Documentation (push) Successful in 55s
Checks / Prek / Pre-commit & Formatting (push) Successful in 1m47s
Release Docker Image / Build linux-amd64 (release) (push) Successful in 7m29s
Release Docker Image / Build linux-arm64 (release) (push) Successful in 6m32s
Release Docker Image / Create Multi-arch Release Manifest (push) Successful in 18s
Checks / Prek / Clippy and Cargo Tests (push) Successful in 11m2s
Maintenance / Renovate / Renovate (push) Successful in 5m37s
Release Docker Image / Build linux-amd64 (max-perf) (push) Successful in 13m21s
Release Docker Image / Build linux-arm64 (max-perf) (push) Successful in 14m14s
Release Docker Image / Create Max-Perf Manifest (push) Successful in 19s
chore(deps): Update actions/checkout to v6
2025-11-25 18:26:28 +00:00

83 lines
1.8 KiB
YAML

name: Checks / Prek
on:
pull_request:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: read
jobs:
fast-checks:
name: Pre-commit & Formatting
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
persist-credentials: false
- name: Setup Rust nightly
uses: ./.forgejo/actions/setup-rust
with:
rust-version: nightly
github-token: ${{ secrets.GH_PUBLIC_RO }}
- name: Run prek
run: |
prek run \
--all-files \
--hook-stage manual \
--show-diff-on-failure \
--color=always \
-v
- name: Check Rust formatting
run: |
cargo +nightly fmt --all -- --check && \
echo "✅ Formatting check passed" || \
exit 1
clippy-and-tests:
name: Clippy and Cargo Tests
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
persist-credentials: false
- name: Setup LLVM
uses: ./.forgejo/actions/setup-llvm-with-apt
with:
extra-packages: liburing-dev liburing2
- name: Setup Rust with caching
uses: ./.forgejo/actions/setup-rust
with:
github-token: ${{ secrets.GH_PUBLIC_RO }}
- name: Run Clippy lints
run: |
cargo clippy \
--workspace \
--features full \
--locked \
--no-deps \
--profile test \
-- \
-D warnings
- name: Run Cargo tests
run: |
cargo test \
--workspace \
--features full \
--locked \
--profile test \
--all-targets \
--no-fail-fast