Merge pull request #2125 from authzed/byte-sortable-revision #7679
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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" |