mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-09-09 08:33:04 +02:00
The prefligit project has been renamed to prek due to typosquatting concerns. This updates our CI to use the new name and recommended installation method via uv, which significantly reduces setup time compared to cargo install and includes automatic caching. - Replace outdated static prefligit action with direct prek invocation - Use uv as recommended by upstream: https://github.com/j178/prek - Update check-byte-order-marker to fix-byte-order-marker (deprecated) - Simplify workflow by removing unused ref calculations The same .pre-commit-config.yaml works unchanged. Developers can install locally with 'uvx prek install' or other methods from the repo.
34 lines
698 B
YAML
34 lines
698 B
YAML
name: Checks / Prek
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
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: Install uv
|
|
uses: https://github.com/astral-sh/setup-uv@v6
|
|
with:
|
|
enable-cache: true
|
|
ignore-nothing-to-cache: true
|
|
cache-dependency-glob: ''
|
|
|
|
- name: Run prek
|
|
run: |
|
|
uvx prek run \
|
|
--all-files \
|
|
--hook-stage manual \
|
|
--show-diff-on-failure \
|
|
--color=always \
|
|
-v
|