Skip to content

Define Helm GitHub Actions #876

Define Helm GitHub Actions

Define Helm GitHub Actions #876

Workflow file for this run

# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Tests
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build-lint-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: ./.github/actions/setup-goversion
- name: Build
run: go build -v ./...
- name: Lint
uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8 # 6.1.1
with:
version: v1.56
- name: Test
run: go test -v ./...
check-for-doc-changes:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #v4.2.2
- name: Regenerate Helm Docs
run: |
docker run --rm \
-v "$(PWD):/helm-docs" \
-u "$(id -u)" \
jnorwood/helm-docs:latest
if ! git diff --exit-code; then
echo "Helm docs are out of date. Please run 'make -C deploy/helm docs' and commit the changes."
exit 1
fi
shell: bash