Merge pull request #10893 from subhamkrai/fix-working-dir

ci: no need to copy working dir to GOPATH
This commit is contained in:
Travis Nielsen authored and GitHub committed 2022-09-06 09:15:05 -06:00
commit cdc2a5e8a5
5 files changed
-30

No files matched your search

-11
View File
@@ -34,24 +34,17 @@ jobs:
with:
version: v3.6.2
- name: copy working directory to GOPATH
run: sudo mkdir -p /Users/runner/go/src/github.com && sudo cp -a /Users/runner/work/rook /Users/runner/go/src/github.com/
- name: build rook
working-directory: /Users/runner/go/src/github.com/rook/rook
run: |
GOPATH=$(go env GOPATH) make clean && make -j$nproc IMAGES='ceph' BUILD_CONTAINER_IMAGE=false build
- name: validate build
working-directory: /Users/runner/go/src/github.com/rook/rook
run: tests/scripts/validate_modified_files.sh build
- name: run codegen
working-directory: /Users/runner/go/src/github.com/rook/rook
run: GOPATH=$(go env GOPATH) make codegen
- name: validate codegen
working-directory: /Users/runner/go/src/github.com/rook/rook
run: tests/scripts/validate_modified_files.sh codegen
- name: run mod check
@@ -61,19 +54,15 @@ jobs:
run: tests/scripts/validate_modified_files.sh modcheck
- name: run crds-gen
working-directory: /Users/runner/go/src/github.com/rook/rook
run: make csv-clean && GOPATH=$(go env GOPATH) make crds
- name: validate crds-gen
working-directory: /Users/runner/go/src/github.com/rook/rook
run: tests/scripts/validate_modified_files.sh crd
- name: run gen-rbac
working-directory: /Users/runner/go/src/github.com/rook/rook
run: GOPATH=$(go env GOPATH) make gen-rbac
- name: validate gen-rbac
working-directory: /Users/runner/go/src/github.com/rook/rook
run: tests/scripts/validate_modified_files.sh gen-rbac
- name: consider debugging
-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
-5
View File
@@ -37,13 +37,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 crds-gen
working-directory: /home/runner/go/src/github.com/rook/rook
run: GOPATH=$(go env GOPATH) make crds
- name: validate crds-gen
working-directory: /home/runner/go/src/github.com/rook/rook
run: tests/scripts/validate_modified_files.sh crd
-5
View File
@@ -37,13 +37,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 gen-rbac
working-directory: /home/runner/go/src/github.com/rook/rook
run: GOPATH=$(go env GOPATH) make gen-rbac
- name: validate gen-rbac
working-directory: /home/runner/go/src/github.com/rook/rook
run: tests/scripts/validate_modified_files.sh gen-rbac
-4
View File
@@ -38,9 +38,5 @@ jobs:
with:
go-version: 1.18
- 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 unit tests
working-directory: /home/runner/go/src/github.com/rook/rook
run: GOPATH=$(go env GOPATH) make -j $(nproc) test