ci: simplify the codegen workflow a bit
the codegen ci workflow was previously fixed by copying the checkout dir to the GOPATH. With the updated codegen tooling, this alignment is not a requirement any more. This simplifies the codegen workflow again by reverting the earlier changes that added the copy mechanism. This reverts commit714f80a80a. This reverts commitf32d3df995. Signed-off-by: Michael Adam <obnox@samba.org>
This commit is contained in:
1 parent
fe9664f7c0
commit
46fae529eb
1 file changed
+2
-12
@@ -38,18 +38,8 @@ jobs:
|
||||
with:
|
||||
go-version: "1.22"
|
||||
|
||||
- name: post-process checkout - copy to github.com
|
||||
run: |
|
||||
# copy to the github.com path so codegen will work as expected
|
||||
mkdir -p $(go env GOPATH)/src/github.com/rook/rook/
|
||||
cp -R . $(go env GOPATH)/src/github.com/rook/rook/
|
||||
|
||||
- name: run codegen
|
||||
run: |
|
||||
cd $(go env GOPATH)/src/github.com/rook/rook
|
||||
GOPATH=$(go env GOPATH) make codegen
|
||||
run: GOPATH=$(go env GOPATH) make codegen
|
||||
|
||||
- name: validate codegen
|
||||
run: |
|
||||
cd $(go env GOPATH)/src/github.com/rook/rook
|
||||
tests/scripts/validate_modified_files.sh codegen
|
||||
run: tests/scripts/validate_modified_files.sh codegen
|
||||
Reference in new issue
Block a user