diff --git a/.github/workflows/build-dev.yaml b/.github/workflows/build-dev.yaml index ea58c5afbe..305782d9de 100644 --- a/.github/workflows/build-dev.yaml +++ b/.github/workflows/build-dev.yaml @@ -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: diff --git a/Makefile b/Makefile index c70a5d4bd9..a9916d303e 100644 --- a/Makefile +++ b/Makefile @@ -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