Skip to content

Commit

Permalink
Merge pull request rook#15094 from obnoxxx/simplify-codegen-workflow
Browse files Browse the repository at this point in the history
ci: simplify the codegen workflow a bit
  • Loading branch information
BlaineEXE authored Dec 6, 2024
2 parents 476827e + 46fae52 commit 700edb0
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions .github/workflows/codegen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 700edb0

Please sign in to comment.