Skip to content

Bump the dependencies group across 1 directory with 12 updates #1174

Bump the dependencies group across 1 directory with 12 updates

Bump the dependencies group across 1 directory with 12 updates #1174

Workflow file for this run

name: Go
on:
push:
branches: [main]
pull_request:
types: [opened, synchronize, ready_for_review]
workflow_call:
workflow_dispatch:
permissions:
contents: read
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: "1.24"
- name: Check Formatting
run: |
unformatted=$(gofmt -s -l .)
if [ -n "$unformatted" ]; then
echo "::error::The following files are not formatted properly:"
echo "$unformatted"
echo "Please run `gofmt -s -w .` to format your code."
exit 1
fi
- name: Go import lint
run: |
go install golang.org/x/tools/cmd/goimports@latest
if [ "$(goimports -d . | wc -l)" -gt 0 ]; then
goimports -d .
echo "Please format Go code by running: goimports -w ./.."
exit 1
fi
- name: Build
run: go build -v ./...
- name: Static analysis
run: |
export STATICCHECK_CACHE="${{ runner.temp }}/staticcheck"
go install "honnef.co/go/tools/cmd/staticcheck@latest"
$(go env GOPATH)/bin/staticcheck ./...
shell: bash
- name: Test
run: go test -v ./... -coverprofile=coverage.out -covermode=atomic
- name: Setup Helm
uses: Azure/setup-helm@v4
- name: Helm lint
run: helm lint charts/*
- name: Codecov
uses: codecov/codecov-action@v5
with:
fail_ci_if_error: true
use_oidc: true