This repository was archived by the owner on Oct 15, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 56
74 lines (61 loc) · 2.05 KB
/
pre-commit.yaml
File metadata and controls
74 lines (61 loc) · 2.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: Pre-commit
on:
pull_request:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.event.number }}
cancel-in-progress: true
permissions:
contents: read
jobs:
pre-commit:
name: Pre-commit
runs-on: ubuntu-latest
env:
GO111MODULE: on
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
persist-credentials: false
- uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5
id: python
with:
python-version: 3.13
- uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5
id: go
with:
go-version: ^1
- name: Run markdown link checker
uses: ./.github/actions/markdown-link-checker
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
args: "--quiet --retry"
- name: Restore pre-commit cache
id: cache-restore
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4
with:
path: |
~/.cache/pre-commit
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-py${{ steps.python.outputs.python-version }}-go${{ steps.go.outputs.go-version }}-${{ hashFiles('**/.pre-commit-config.yaml') }}
- run: python -m pip install pre-commit
shell: bash
- run: python -m pip freeze --local
shell: bash
- name: Set up Helm
uses: azure/setup-helm@5119fcb9089d432beecbf79bb2c7915207344b78 # renovate: tag=v3.5
with:
version: v3.10.0
- name: Helm add bitnami chart
run: |
helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo update
helm dependency build charts/llm-d
- name: Setup helm-docs
run: go install github.com/norwoodj/helm-docs/cmd/helm-docs@latest
- name: Run pre-commit
run: pre-commit run --show-diff-on-failure --color=always --verbose --all-files --show-diff-on-failure
shell: bash