mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-06-26 08:55:23 +02:00
Some checks failed
Release Docker Image / build-image (linux/amd64, release, linux-amd64, base) (push) Has been skipped
Release Docker Image / build-image (linux/arm64, release, linux-arm64, base) (push) Has been skipped
Release Docker Image / merge (push) Has been skipped
Documentation / Build and Deploy Documentation (push) Failing after 11s
Checks / Prefligit / prefligit (push) Failing after 2s
Release Docker Image / define-variables (push) Failing after 1s
Checks / Rust / Format (push) Failing after 3s
Checks / Rust / Clippy (push) Failing after 11s
Checks / Rust / Cargo Test (push) Failing after 11s
- Install UV - Verbose run - Set permissions explicitly - Check all files
27 lines
808 B
YAML
27 lines
808 B
YAML
name: prefligit
|
|
description: |
|
|
Runs prefligit, pre-commit reimplemented in Rust.
|
|
inputs:
|
|
extra_args:
|
|
description: options to pass to pre-commit run
|
|
required: false
|
|
default: '--all-files'
|
|
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- name: Install uv
|
|
uses: https://github.com/astral-sh/setup-uv@v6
|
|
with:
|
|
enable-cache: true
|
|
ignore-nothing-to-cache: true
|
|
- name: Install Prefligit
|
|
shell: bash
|
|
run: |
|
|
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/j178/prefligit/releases/download/v0.0.10/prefligit-installer.sh | sh
|
|
- uses: actions/cache@v3
|
|
with:
|
|
path: ~/.cache/prefligit
|
|
key: prefligit-0|${{ hashFiles('.pre-commit-config.yaml') }}
|
|
- run: prefligit run --show-diff-on-failure --color=always -v ${{ inputs.extra_args }}
|
|
shell: bash
|