Skip to content

Commit

Permalink
GH action verify-generate (#610)
Browse files Browse the repository at this point in the history
  • Loading branch information
eguzki authored May 3, 2024
1 parent db7a73b commit 6c28e22
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 6 deletions.
27 changes: 21 additions & 6 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
go-version: ${{ matrix.go-version }}
id: go
- name: Check out code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Run make test
run: |
make test-unit
Expand Down Expand Up @@ -68,7 +68,7 @@ jobs:
go-version: 1.21.x
id: go
- name: Check out code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Create k8s Kind Cluster
uses: helm/[email protected]
with:
Expand Down Expand Up @@ -110,7 +110,7 @@ jobs:
go-version: 1.21.x
id: go
- name: Check out code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Run make verify-manifests
run: |
make verify-manifests
Expand All @@ -125,7 +125,7 @@ jobs:
go-version: 1.21.x
id: go
- name: Check out code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Run make verify-bundle
run: |
make verify-bundle
Expand All @@ -140,7 +140,7 @@ jobs:
go-version: 1.21.x
id: go
- name: Check out code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Run make verify-fmt
run: |
make verify-fmt
Expand All @@ -162,7 +162,22 @@ jobs:
go-version: ${{ matrix.go-version }}
id: go
- name: Check out code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Run make operator-sdk
run: |
make operator-sdk
verify-generate:
name: Verify generate
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.21.x
uses: actions/setup-go@v4
with:
go-version: 1.21.x
id: go
- name: Check out code
uses: actions/checkout@v4
- name: Verify generate command
run: |
make verify-generate
4 changes: 4 additions & 0 deletions make/verify.mk
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,7 @@ verify-bundle: bundle ## Verify bundle update.
.PHONY: verify-fmt
verify-fmt: fmt ## Verify fmt update.
git diff --exit-code ./api ./controllers

.PHONY: verify-generate
verify-generate: generate ## Verify generate update.
git diff --exit-code ./api ./controllers

0 comments on commit 6c28e22

Please sign in to comment.