Skip to content

Bump github.com/go-logr/logr from 1.4.1 to 1.4.2 #501

Bump github.com/go-logr/logr from 1.4.1 to 1.4.2

Bump github.com/go-logr/logr from 1.4.1 to 1.4.2 #501

name: Build, Lint, and Test
env:
EXPORT_RESULT: true
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: |
~/.cache/golangci-lint
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Install devbox
uses: jetify-com/devbox-install-action@v0.11.0
with:
enable-cache: "true"
- name: Run golangci-lint
run: devbox run -- make lint-go
- name: Check YAML linting
run: devbox run -- make lint-yaml
- name: Check Kubebuilder Annotation linting
run: devbox run -- make lint-kubebuilder
- name: Prepare coverage report
run: devbox run -- make coverage
- name: Codecov
uses: codecov/codecov-action@v4
with:
file: ./coverage.out # Replace with the path to your coverage report
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}