continuwuity/.forgejo/workflows/prek-checks.yml
Renovate Bot a5af7b39bd
Some checks failed
Documentation / Build and Deploy Documentation (pull_request) Successful in 1m33s
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 1m18s
Update flake hashes / update-flake-hashes (pull_request) Successful in 1m53s
Deploy Element Web / 🏗️ Build and Deploy (pull_request) Successful in 7m36s
Checks / Prek / Clippy and Cargo Tests (pull_request) Successful in 8m26s
Checks / Changelog / Check changelog is added (pull_request_target) Successful in 8s
Mirror Container Images / mirror-images (push) Successful in 49s
Checks / Prek / Pre-commit & Formatting (push) Successful in 1m16s
Documentation / Build and Deploy Documentation (push) Successful in 1m27s
Deploy Element Web / 🏗️ Build and Deploy (push) Successful in 8m19s
Checks / Prek / Clippy and Cargo Tests (push) Successful in 9m0s
Maintenance / Renovate / Renovate (push) Successful in 2m58s
Release Docker Image / Build linux-amd64 (release) (push) Successful in 12m20s
Release Docker Image / Build linux-arm64 (release) (push) Successful in 16m2s
Release Docker Image / Create Multi-arch Release Manifest (push) Successful in 39s
Release Docker Image / Build linux-arm64 (max-perf) (push) Has been cancelled
Release Docker Image / Build linux-amd64 (max-perf) (push) Has been cancelled
Release Docker Image / Create Max-Perf Manifest (push) Has been cancelled
chore(deps): pin dependencies
2026-04-13 05:22:53 +00:00

83 lines
1.9 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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # 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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # 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