ci: setup go env in metadata workflow (#337)
Fixes issue in metadata workflow where golangci-lint install fails because $GOPATH is not set.
This commit is contained in:
committed by
GitHub
parent
ae5bc6b80e
commit
81aabe5ce6
6
.github/workflows/metadata.yml
vendored
6
.github/workflows/metadata.yml
vendored
@@ -12,6 +12,12 @@ jobs:
|
|||||||
uses: actions/setup-go@37335c7bb261b353407cff977110895fa0b4f7d8 # v2.1.3
|
uses: actions/setup-go@37335c7bb261b353407cff977110895fa0b4f7d8 # v2.1.3
|
||||||
with:
|
with:
|
||||||
go-version: 1.19.x
|
go-version: 1.19.x
|
||||||
|
- name: Configure Go Environment
|
||||||
|
run: |
|
||||||
|
echo GOPATH=${{ runner.workspace }} >> $GITHUB_ENV
|
||||||
|
echo ${{ runner.workspace }}/bin >> $GITHUB_PATH
|
||||||
|
- name: Go Environment
|
||||||
|
run: go env
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
|
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user