Debian Codegraph @

docs/.github/workflows/lint.yml

raw
1 name: Lint
2 on:
3 workflow_dispatch:
4 push:
5 branches:
6 - master
7 pull_request:
8
9 permissions:
10 contents: read
11
12 jobs:
13 markdownlint:
14 name: Lint Markdown
15 runs-on: ubuntu-latest
16 steps:
17 - name: Checkout repository
18 uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
19 - name: Run Markdown linter
20 uses: DavidAnson/markdownlint-cli2-action@ded1f9488f68a970bc66ea5619e13e9b52e601cd # v23.2.0
21 with:
22 globs: # set to null to override default of *.{md,markdown}
23
24 spellcheck:
25 name: Check spelling
26 runs-on: ubuntu-latest
27 steps:
28 - name: Checkout repository
29 uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
30 - name: Check spelling with cspell
31 uses: streetsidesoftware/cspell-action@de2a73e963e7443969755b648a1008f77033c5b2 # v8.4.0
32 with:
33 incremental_files_only: true
34 strict: true
35 # cspell uses the .cspell.json configuration file
36 - name: Check spelling with codespell
37 uses: codespell-project/actions-codespell@8f01853be192eb0f849a5c7d721450e7a467c579 # v2.2
38 with:
39 check_filenames: true
40 check_hidden: true
41 # codespell uses the .codespellrc file
42
43 template-formatting:
44 name: Check template formatting
45 runs-on: ubuntu-latest
46 steps:
47 - name: Checkout repository
48 uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
49 - name: Install Go
50 uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
51 with:
52 go-version: "1.26"
53 check-latest: true
54 cache: true
55 cache-dependency-path: |
56 **/go.sum
57 **/go.mod
58 - name: Install gotmplfmt
59 run: go install github.com/gohugoio/gotmplfmt@623175f49b3d07a11da381ff85228d0d03101880 # v0.4.1
60 - name: Check template formatting
61 run: "diff <(gotmplfmt -d layouts) <(printf '')"