@@ -11,37 +11,35 @@ on: # yamllint disable-line rule:truthy
1111 types :
1212 - " checks_requested"
1313jobs :
14- go-lint :
15- name : " Lint Go"
14+ lint :
1615 runs-on : " ubuntu-latest"
1716 steps :
1817 - uses : " actions/checkout@v4"
1918 - uses : " authzed/actions/setup-go@main"
20- - name : " Lint Go"
21- run : " go run magefile.go lint:go"
22- - name : " Go Mod Tidy"
19+ with :
20+ go-version-file : " go.mod"
21+ - name : " Lint everything and check for tidy dependencies"
22+ run : " go run magefile.go lint:all && go run magefile.go deps:tidy"
23+ - name : " Check no diff"
2324 uses : " chainguard-dev/actions/nodiff@main"
2425 with :
2526 path : " "
26- fixup-command : " go run magefile.go deps:tidy"
27+ fixup-command : " go run magefile.go lint:all && go run magefile.go deps:tidy"
2728 protobuf :
2829 name : " Generate Protobufs"
2930 runs-on : " ubuntu-latest"
3031 steps :
3132 - uses : " actions/checkout@v4"
3233 - uses : " authzed/actions/setup-go@main"
33- - uses : " chainguard-dev/actions/nodiff@main"
34+ with :
35+ go-version-file : " go.mod"
36+ - name : " Generate Protos"
37+ run : " go run magefile.go gen:all"
38+ - name : " Check no diff"
39+ uses : " chainguard-dev/actions/nodiff@main"
3440 with :
3541 path : " "
36- fixup-command : " go run magefile.go gen:proto"
37- extra-lint :
38- name : " Lint YAML"
39- runs-on : " ubuntu-latest"
40- steps :
41- - uses : " actions/checkout@v4"
42- - uses : " authzed/actions/setup-go@main"
43- - name : " Lint Go"
44- run : " go run magefile.go lint:extra"
42+ fixup-command : " go run magefile.go gen:all"
4543 codeql :
4644 name : " Analyze with CodeQL"
4745 runs-on : " ubuntu-latest"
0 commit comments