-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add kubebuilder check and update doc.crds.dev update
- Loading branch information
Showing
5 changed files
with
69 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,21 @@ | ||
name: 'Force pkg.go.dev release sync' | ||
name: 'Force update pkg.go.dev/doc.crds.dev release sync' | ||
|
||
on: | ||
release: | ||
types: [published] | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
build: | ||
name: Renew documentation | ||
runs-on: | ||
group: Default | ||
steps: | ||
- name: Pull new module version | ||
uses: andrewslotin/go-proxy-pull-action@master | ||
pkg-go-dev: | ||
name: Renew documentation | ||
runs-on: | ||
group: Default | ||
steps: | ||
- name: Pull new module version | ||
uses: andrewslotin/go-proxy-pull-action@master | ||
doc-crds-dev: | ||
name: Renew documentation | ||
runs-on: | ||
group: Default | ||
steps: | ||
- name: update doc.crds.dev | ||
uses: azrod/doc-crds-dev-update-action@master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,8 @@ name: Unit tests | |
|
||
on: | ||
pull_request: | ||
paths: | ||
- '**.go' | ||
workflow_dispatch: | ||
|
||
permissions: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: kubebuidler-generate | ||
|
||
# This GitHub action runs your tests for each pull request and push. | ||
# Optionally, you can turn it on using a schedule for regular testing. | ||
on: | ||
pull_request: | ||
paths: | ||
- 'api/**' | ||
- 'internal/controller/**' | ||
|
||
# only needs permissions to read the repository contents. | ||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
kubebuilder: | ||
name: Kube Builder | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 # v3.5.0 | ||
- uses: actions/setup-go@v5 # v4.0.0 | ||
with: | ||
go-version-file: 'go.mod' | ||
- run: make manifests | ||
- run: make generate | ||
- name: git diff | ||
run: | | ||
git diff --compact-summary --exit-code || \ | ||
(echo; echo "Unexpected difference in directories after code generation. Run 'make generate and make manifests' command and commit."; exit 1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters