File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,25 @@ permissions:
1717 pull-requests : read
1818
1919jobs :
20+ lint :
21+ name : Lint Go Code
22+ runs-on : ubuntu-latest
23+ steps :
24+ - name : Checkout code
25+ uses : actions/checkout@v5
26+
27+ - name : Set up Go
28+ uses : actions/setup-go@v5
29+ with :
30+ go-version-file : ' go.mod'
31+ cache : true
32+
33+ - name : Run golangci-lint
34+ uses : golangci/golangci-lint-action@v6
35+ with :
36+ version : latest
37+ args : --timeout=5m
38+
2039 validate-and-test :
2140 name : Validate and Test
2241 runs-on : ubuntu-latest
5574 build-and-release :
5675 name : Build and Release Registry
5776 runs-on : ubuntu-latest
58- needs : validate-and-test
77+ needs : [lint, validate-and-test]
5978 if : github.ref == 'refs/heads/main' && (github.event_name == 'push' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch')
6079 steps :
6180 - name : Checkout code
You can’t perform that action at this time.
0 commit comments