Skip to content

[codegen] Add Webhook Conversion Strategy to Generated CRDs #861

[codegen] Add Webhook Conversion Strategy to Generated CRDs

[codegen] Add Webhook Conversion Strategy to Generated CRDs #861

Workflow file for this run

name: Build PR
on:
pull_request:
branches:
- main
- "lts/v0.24"
jobs:
check:
name: Go Workspace Check
runs-on: ubuntu-latest
# Exlude dependabot from this check--it can't run make update-workspace,
# We'll just force the next PR author to do it instead for now
if: ${{ github.actor != 'dependabot[bot]' }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set go version
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: Update workspace
run: make update-workspace
- name: Check for go mod & workspace changes
run: |
if ! git diff --exit-code --quiet; then
echo "Changes detected:"
git diff
echo "Please run 'make update-workspace' and commit the changes."
exit 1
fi
lint:
runs-on: ubuntu-latest
steps:
# git checkout
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
# go env
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
# make lint
- name: Lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.60.3
only-new-issues: true
args: --timeout 5m $(go list -f '{{.Dir}}/...' -m | tr '\n' ' ')
test:
uses: ./.github/workflows/test.yml