Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 20 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,31 @@
# Maintained in https://github.com/coreos/repo-templates
# Do not edit downstream.

# Updates are grouped together by ecosystem in a single PR. An update can be
# removed from a combined update PR via comments to dependabot:
# 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

version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
labels: ["skip-notes"]
open-pull-requests-limit: 3
groups:
actions:
patterns:
- "*"
- package-ecosystem: gomod
directory: /
schedule:
interval: weekly
interval: monthly
open-pull-requests-limit: 10
labels:
- kind/dependency

groups:
build:
patterns:
- "*"
2 changes: 1 addition & 1 deletion .github/workflows/container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
uses: actions/checkout@v5
- name: Build and push container
uses: coreos/actions-lib/build-container@main
with:
Expand Down
22 changes: 16 additions & 6 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,33 @@ jobs:
name: Test
strategy:
matrix:
go-version: [1.18.x, 1.19.x, 1.20.x]
go-version: [1.24.x, 1.25.x]
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Check out repository
uses: actions/checkout@v3
uses: actions/checkout@v5
- name: Check modules
run: go mod verify
- name: Build
run: go build
- name: Test
run: go test -v ./...
- name: Check Go formatting (gofmt)
shell: bash
run: |
GO_FILES=$(find . -name '*.go' -not -path "./vendor/*")
UNFORMATTED_FILES=$(gofmt -l $GO_FILES)
if [ -n "$UNFORMATTED_FILES" ]; then
echo "Go files are not formatted. Please run 'gofmt -w .' on your code."
gofmt -d $UNFORMATTED_FILES
exit 1
fi
echo "All Go files are correctly formatted."
- name: Run linter
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v8
with:
version: v1.52.2
args: -E=gofmt --timeout=30m0s
version: v2.6.2
Loading