Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Update dependant config and makefile for tools package #100

Merged
merged 4 commits into from
Oct 8, 2024
Merged
Show file tree
Hide file tree
Changes from 3 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
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@ updates:
patterns:
- "k8s.io/*"

- package-ecosystem: "gomod" # See documentation for possible values
directory: "/internal/tools" # Location of package manifests
schedule:
interval: "daily"
commit-message:
prefix: "chore"
labels:
- "kind/chore"
- "area/ci"


- package-ecosystem: "docker" # See documentation for possible values
directory: "/" # Location of package manifests
Expand All @@ -28,6 +38,7 @@ updates:
labels:
- "kind/chore"
- "area/dependency"

- package-ecosystem: "github-actions" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
Expand Down
18 changes: 18 additions & 0 deletions .github/template/setup-golang/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Setup Golang
description: Configures Golang with caching

runs:
using: "composite"

steps:
# uses the go version from go.mod.
# Run this step after the checkout step!
- name: Setup Golang
uses: actions/setup-go@v5
with:
go-version-file: "go.mod"
cache: true

- name: Install Tools
shell: bash
run: make install-tools
43 changes: 0 additions & 43 deletions .github/workflows/lint-go.yml

This file was deleted.

17 changes: 4 additions & 13 deletions .github/workflows/pr-code-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,7 @@ jobs:
uses: actions/checkout@v4

- name: Setup Golang
uses: actions/setup-go@v5
with:
go-version-file: "go.mod"
cache: true
uses: "./.github/template/setup-golang"

- name: Run tests
run: make test
Expand All @@ -43,16 +40,10 @@ jobs:
uses: actions/checkout@v4

- name: Setup Golang
uses: actions/setup-go@v5
with:
go-version-file: "go.mod"
cache: true
uses: "./.github/template/setup-golang"

- name: Run linting
uses: golangci/[email protected]
with:
install-mode: binary
version: latest
- name: Run lint
run: make lint

gitleaks:
runs-on: ubuntu-latest
Expand Down
Loading