Skip to content

Commit

Permalink
fix: set GOPATH
Browse files Browse the repository at this point in the history
  • Loading branch information
faiq committed Jan 26, 2024
1 parent 9e3bfff commit ce44d7c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/build-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,19 @@ jobs:
runs-on: ubuntu-latest
steps:
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."

- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."

- run: mkdir -p /home/runner/work/go/src/github.com/

- run: export GOPATH=/home/runner/work/go

- name: Checkout
uses: actions/checkout@v4
with:
path: go/src/github.com/nutanix-cloud-native

- run: pwd

- uses: actions/cache@v3
with:
Expand Down
3 changes: 0 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -311,9 +311,6 @@ coverage: ## Run the tests of the project and export the coverage
KUBEBUILDER_ASSETS="$(shell setup-envtest use $(ENVTEST_K8S_VERSION) --arch=amd64 -p path)" $(GOTEST) -cover -covermode=count -coverprofile=profile.cov ./...
$(GOTOOL) cover -func profile.cov
ifeq ($(EXPORT_RESULT), true)
go env -w GO111MODULE=off
go env
pwd
gocov convert profile.cov | gocov-xml > coverage.xml
endif

Expand Down

0 comments on commit ce44d7c

Please sign in to comment.