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 492c0e1
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 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,6 +42,13 @@ 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/work/go/src/github.com/nutanix-cloud-native/ && ln -s /home/runner/work/cluster-api-provider-nutanix/cluster-api-provider-nutanix /home/runner/work/go/src/github.com/nutanix-cloud-native

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

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

Expand Down

0 comments on commit 492c0e1

Please sign in to comment.