Skip to content

Lint

Lint #7672

Workflow file for this run

---
name: "Lint"
on: # yamllint disable-line rule:truthy
push:
branches:
- "!dependabot/*"
- "main"
pull_request:
branches: ["*"]
merge_group:
types:
- "checks_requested"
jobs:
go-license-check:
name: "License Check"
runs-on: "buildjet-4vcpu-ubuntu-2204"
steps:
- uses: "actions/checkout@v4"
- uses: "authzed/actions/setup-go@main"
- name: "Check Licenses"
uses: "authzed/actions/go-license-check@main"
with:
ignore: "buf.build" # Has no license information
go-lint:
name: "Lint Go"
runs-on: "buildjet-4vcpu-ubuntu-2204"
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"
- uses: "authzed/actions/setup-go@main"
- 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"