File tree Expand file tree Collapse file tree 3 files changed +32
-8
lines changed
Expand file tree Collapse file tree 3 files changed +32
-8
lines changed Original file line number Diff line number Diff line change 33
44version : 2
55updates :
6+ - package-ecosystem : " github-actions"
7+ directory : " /"
8+ schedule :
9+ interval : " weekly"
10+ labels : ["skip-notes"]
11+ open-pull-requests-limit : 3
612 - package-ecosystem : gomod
713 directory : /
814 schedule :
9- interval : weekly
15+ interval : monthly
1016 open-pull-requests-limit : 10
1117 labels :
1218 - kind/dependency
19+
20+ # Group all updates together in a single PR. We can remove some
21+ # updates from a combined update PR via comments to dependabot:
22+ # 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
23+ groups :
24+ build :
25+ patterns :
26+ - " *"
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@v4
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.23 .x, 1.24 .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@v4
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.1.6
You can’t perform that action at this time.
0 commit comments