-
Notifications
You must be signed in to change notification settings - Fork 246
50 lines (49 loc) · 1.26 KB
/
lint.yaml
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
---
name: "Lint"
on: # yamllint disable-line rule:truthy
push:
branches:
- "!dependabot/*"
- "main"
pull_request:
branches: ["*"]
merge_group:
types:
- "checks_requested"
jobs:
go-filter:
runs-on: "ubuntu-latest"
outputs:
gochange: "${{ steps.code-filter.outputs.gochange }}"
steps:
- uses: "actions/checkout@v3"
- uses: "dorny/paths-filter@v2"
id: "go-filter"
with:
filters: |
gochange:
- "**.go"
go-lint:
name: "Lint Go"
runs-on: "buildjet-4vcpu-ubuntu-2204"
if: "needs.paths-filter.outputs.gochange == 'true'"
steps:
- uses: "actions/checkout@v4"
- uses: "authzed/actions/setup-go@main"
- name: "Lint Go"
run: "go run mage.go lint:go"
- uses: "chainguard-dev/actions/nodiff@main"
with:
path: ""
fixup-command: "go run mage.go lint:go"
extra-lint:
name: "Lint YAML & Markdown"
runs-on: "buildjet-2vcpu-ubuntu-2204"
steps:
- uses: "actions/checkout@v4"
- name: "Lint Everything Else"
run: "go run mage.go lint:extra"
- uses: "chainguard-dev/actions/nodiff@main"
with:
path: ""
fixup-command: "go run mage.go lint:extra"