mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-09-09 19:53:02 +02:00
ci: Run additional sanity checks on repository
This commit is contained in:
parent
70df8364b3
commit
93719018a8
5 changed files with 89 additions and 2 deletions
22
.forgejo/actions/prefligit/action.yml
Normal file
22
.forgejo/actions/prefligit/action.yml
Normal file
|
@ -0,0 +1,22 @@
|
|||
name: reflighit
|
||||
description: |
|
||||
Runs reflighit, 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 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 ${{ inputs.extra_args }}
|
||||
shell: bash
|
Loading…
Add table
Add a link
Reference in a new issue