Skip to content

Commit

Permalink
fix: adds a link to repo in the gopath
Browse files Browse the repository at this point in the history
  • Loading branch information
faiq committed Jan 26, 2024
1 parent ce44d7c commit 4d62741
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/build-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,8 @@ jobs:

- 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 All @@ -50,8 +42,15 @@ jobs:
- name: Run unit tests
run: devbox run -- make unit-test

# go cov expects things to be properly placed under go path.
# GHA clones into /home/runner/work/repository so we create
# the directory under the right path and link it
- run: mkdir -p /home/runner/go/src/github.com/nutanix-cloud-native/ && ln -s /home/runner/work/cluster-api-provider-nutanix/cluster-api-provider-nutanix /home/runner/go/src/github.com/nutanix-cloud-native

- run: ls /home/runner/go/src/github.com/nutanix-cloud-native/cluster-api-provider-nutanix/

- name: Run coverage report
run: devbox run -- make coverage
run: devbox run -- "make coverage"

- name: Codecov
uses: codecov/codecov-action@v3.1.4
Expand Down

0 comments on commit 4d62741

Please sign in to comment.