ci: no need to copy working dir to GOPATH

this commits remove using working-dire and copying
files to GOPATH since they are not required anymore.

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit c2cc8d3a66)
This commit is contained in:
subhamkrai authored and Mergify committed 2022-09-06 15:15:39 +00:00
1 parent 960389eaac
commit aa76cf9013
5 files changed
-30

No files matched your search

-5
View File
@@ -38,13 +38,8 @@ jobs:
with:
fetch-depth: 0
- 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