Some checks failed
Release Docker Image / merge (pull_request) Blocked by required conditions
Documentation / Build and Deploy Documentation (pull_request) Successful in 36s
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 1m2s
Checks / Prek / Clippy and Cargo Tests (pull_request) Successful in 6m54s
Release Docker Image / define-variables (pull_request) Successful in 2s
Documentation / Build and Deploy Documentation (push) Successful in 47s
Checks / Prek / Pre-commit & Formatting (push) Successful in 1m10s
Release Docker Image / define-variables (push) Successful in 1s
Checks / Prek / Clippy and Cargo Tests (push) Successful in 5m42s
Release Docker Image / merge (push) Has been cancelled
Release Docker Image / build-image (linux/amd64, release, linux-amd64, base) (push) Has been cancelled
Release Docker Image / build-image (linux/arm64, release, linux-arm64, base) (push) Has been cancelled
Release Docker Image / build-image (linux/arm64, release, linux-arm64, base) (pull_request) Failing after 21m9s
Release Docker Image / build-image (linux/amd64, release, linux-amd64, base) (pull_request) Failing after 21m24s
83 lines
1.8 KiB
YAML
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@v4
|
|
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@v4
|
|
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
|