ci: fix codegen err
codegen is currently broken in master. this commit fix the broken codegen by fixing the correct working directory in gh action. Signed-off-by: subhamkrai <srai@redhat.com>
This commit is contained in:
1 parent
e6b44cc386
commit
afed5bf109
2 files changed
+8
-5
No files matched your search
@@ -8,16 +8,20 @@ jobs:
|
||||
codegen:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: checkout
|
||||
uses: actions/checkout@v1
|
||||
|
||||
- uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: 1.15
|
||||
|
||||
- name: checkout
|
||||
uses: actions/checkout@v1
|
||||
|
||||
- name: copy working directory to GOPATH
|
||||
run: sudo mkdir -p /home/runner/go/src/github.com && sudo cp -a /home/runner/work/rook /home/runner/go/src/github.com/
|
||||
|
||||
- name: run codegen
|
||||
working-directory: /home/runner/go/src/github.com/rook/rook
|
||||
run: GOPATH=$(go env GOPATH) make codegen
|
||||
|
||||
- name: validate codegen
|
||||
working-directory: /home/runner/go/src/github.com/rook/rook
|
||||
run: tests/scripts/validate_modified_files.sh codegen
|
||||
|
||||
Reference in new issue
Block a user