Skip to content

Commit a7629ea

Browse files
committed
Sync repo templates ⚙
Sync with coreos/repo-templates@6c4de20.
1 parent a3585ed commit a7629ea

File tree

3 files changed

+32
-8
lines changed

3 files changed

+32
-8
lines changed

.github/dependabot.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,24 @@
33

44
version: 2
55
updates:
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+
- "*"

.github/workflows/container.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
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:

.github/workflows/go.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)