Skip to content
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.

Commit

Permalink
github/workflows: setup GOBIN and PATH after setup-go
Browse files Browse the repository at this point in the history
  • Loading branch information
fsouza committed Mar 2, 2020
1 parent 62816f9 commit 91c4726
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ jobs:
stable: false
go-version: ${{ matrix.go_version }}

- name: setup GOBIN
run: |
export GOBIN=$(go env GOPATH)/bin
echo "::set-env name=GOBIN::$(go env GOBIN)"
echo "::add-path::$(go env GOBIN)"
- uses: actions/checkout@master

- name: install deps
Expand All @@ -39,8 +45,7 @@ jobs:
)
- name: run-linter
run: |
$(go env GOPATH)/bin/golangci-lint run
run: golangci-lint run
env:
GOPROXY: off
GOFLAGS: -mod=readonly
Expand Down

0 comments on commit 91c4726

Please sign in to comment.