File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# Maintained in https://github.com/coreos/repo-templates
22# Do not edit downstream.
33
4+ # Updates are grouped together by ecosystem in a single PR. An update can be
5+ # removed from a combined update PR via comments to dependabot:
6+ # https://docs.github.com/en/code-security/dependabot/working-with-dependabot/managing-pull-requests-for-dependency-updates#managing-dependabot-pull-requests-for-grouped-updates-with-comment-commands
7+
48version : 2
59updates :
10+ - package-ecosystem : " github-actions"
11+ directory : " /"
12+ schedule :
13+ interval : " weekly"
14+ labels : ["skip-notes"]
15+ open-pull-requests-limit : 3
16+ groups :
17+ actions :
18+ patterns :
19+ - " *"
620 - package-ecosystem : gomod
721 directory : /
822 schedule :
9- interval : weekly
23+ interval : monthly
1024 open-pull-requests-limit : 10
1125 labels :
1226 - kind/dependency
27+
28+ groups :
29+ build :
30+ patterns :
31+ - " *"
Original file line number Diff line number Diff line change 2323 runs-on : ubuntu-latest
2424 steps :
2525 - name : Check out repository
26- uses : actions/checkout@v3
26+ uses : actions/checkout@v6
2727 - name : Build and push container
2828 uses : coreos/actions-lib/build-container@main
2929 with :
Original file line number Diff line number Diff line change @@ -20,23 +20,33 @@ jobs:
2020 name : Test
2121 strategy :
2222 matrix :
23- go-version : [1.18 .x, 1.19.x, 1.20 .x]
23+ go-version : [1.24 .x, 1.25 .x]
2424 runs-on : ubuntu-latest
2525 steps :
2626 - name : Set up Go 1.x
27- uses : actions/setup-go@v4
27+ uses : actions/setup-go@v5
2828 with :
2929 go-version : ${{ matrix.go-version }}
3030 - name : Check out repository
31- uses : actions/checkout@v3
31+ uses : actions/checkout@v6
3232 - name : Check modules
3333 run : go mod verify
3434 - name : Build
3535 run : go build
3636 - name : Test
3737 run : go test -v ./...
38+ - name : Check Go formatting (gofmt)
39+ shell : bash
40+ run : |
41+ GO_FILES=$(find . -name '*.go' -not -path "./vendor/*")
42+ UNFORMATTED_FILES=$(gofmt -l $GO_FILES)
43+ if [ -n "$UNFORMATTED_FILES" ]; then
44+ echo "Go files are not formatted. Please run 'gofmt -w .' on your code."
45+ gofmt -d $UNFORMATTED_FILES
46+ exit 1
47+ fi
48+ echo "All Go files are correctly formatted."
3849 - name : Run linter
39- uses : golangci/golangci-lint-action@v3
50+ uses : golangci/golangci-lint-action@v8
4051 with :
41- version : v1.52.2
42- args : -E=gofmt --timeout=30m0s
52+ version : v2.6.2
You can’t perform that action at this time.
0 commit comments