mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-06-26 07:35:23 +02:00
ci: fixes
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
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
This commit is contained in:
parent
a682e9dbb8
commit
2ecbd75d64
3 changed files with 17 additions and 5 deletions
|
@ -23,6 +23,6 @@ indent_size = 2
|
||||||
indent_style = tab
|
indent_style = tab
|
||||||
max_line_length = 98
|
max_line_length = 98
|
||||||
|
|
||||||
[{**/*.yml}]
|
[*.yml]
|
||||||
indent_size = 2
|
indent_size = 2
|
||||||
indent_style = space
|
indent_style = space
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
name: reflighit
|
name: prefligit
|
||||||
description: |
|
description: |
|
||||||
Runs reflighit, pre-commit reimplemented in Rust.
|
Runs prefligit, pre-commit reimplemented in Rust.
|
||||||
inputs:
|
inputs:
|
||||||
extra_args:
|
extra_args:
|
||||||
description: options to pass to pre-commit run
|
description: options to pass to pre-commit run
|
||||||
|
@ -10,6 +10,11 @@ inputs:
|
||||||
runs:
|
runs:
|
||||||
using: composite
|
using: composite
|
||||||
steps:
|
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
|
- name: Install Prefligit
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
@ -18,5 +23,5 @@ runs:
|
||||||
with:
|
with:
|
||||||
path: ~/.cache/prefligit
|
path: ~/.cache/prefligit
|
||||||
key: prefligit-0|${{ hashFiles('.pre-commit-config.yaml') }}
|
key: prefligit-0|${{ hashFiles('.pre-commit-config.yaml') }}
|
||||||
- run: prefligit run --show-diff-on-failure --color=always ${{ inputs.extra_args }}
|
- run: prefligit run --show-diff-on-failure --color=always -v ${{ inputs.extra_args }}
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
|
@ -2,6 +2,9 @@ name: Checks / Prefligit
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
pull_request:
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
prefligit:
|
prefligit:
|
||||||
|
@ -10,6 +13,10 @@ jobs:
|
||||||
FROM_REF: ${{ github.event.pull_request.base.sha || (!github.event.forced && ( github.event.before != '0000000000000000000000000000000000000000' && github.event.before || github.sha )) || format('{0}~', github.sha) }}
|
FROM_REF: ${{ github.event.pull_request.base.sha || (!github.event.forced && ( github.event.before != '0000000000000000000000000000000000000000' && github.event.before || github.sha )) || format('{0}~', github.sha) }}
|
||||||
TO_REF: ${{ github.sha }}
|
TO_REF: ${{ github.sha }}
|
||||||
steps:
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
- uses: ./.forgejo/actions/prefligit
|
- uses: ./.forgejo/actions/prefligit
|
||||||
with:
|
with:
|
||||||
extra_args: --from-ref ${{ env.FROM_REF }} --to-ref ${{ env.TO_REF }} --hook-stage manual
|
extra_args: --all-files --hook-stage manual
|
||||||
|
|
Loading…
Add table
Reference in a new issue