Skip to content

Commit

Permalink
Merge pull request #57 from Aerex/chore/update-go-github-action
Browse files Browse the repository at this point in the history
build(github_action): Set GOPATH env before any Go step
  • Loading branch information
maximilien authored Jun 17, 2022
2 parents 9da663f + b49066d commit c9f8392
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ jobs:
steps:

- name: Set up Go 1.x
uses: actions/setup-go@v2
uses: actions/setup-go@v3
with:
go-version: ^1.13
go-version: '>=1.17'

- name: Check out code into the Go module directory
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Get dependencies
run: |
Expand All @@ -36,4 +36,6 @@ jobs:
run: ./bin/build

- name: Test
run: ./bin/test
run: |
export GOPATH=$(go env GOPATH)/bin
./bin/test

0 comments on commit c9f8392

Please sign in to comment.