update the way env is set
This commit is contained in:
parent
8bc13046c4
commit
da1a889fd6
8
.github/workflows/cli.yml
vendored
8
.github/workflows/cli.yml
vendored
@ -6,10 +6,6 @@ on:
|
|||||||
- master
|
- master
|
||||||
- v1
|
- v1
|
||||||
|
|
||||||
env:
|
|
||||||
GO111MODULE: on
|
|
||||||
GOPROXY: https://proxy.golang.org
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
strategy:
|
strategy:
|
||||||
@ -24,9 +20,11 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
go-version: ${{ matrix.go }}
|
go-version: ${{ matrix.go }}
|
||||||
|
|
||||||
- name: Set GOPATH and PATH
|
- name: Set GOPATH, PATH and ENV
|
||||||
run: |
|
run: |
|
||||||
echo "::set-env name=GOPATH::$(dirname $GITHUB_WORKSPACE)"
|
echo "::set-env name=GOPATH::$(dirname $GITHUB_WORKSPACE)"
|
||||||
|
echo "::set-env name=GO111MODULE::on"
|
||||||
|
echo "::set-env name=GOPROXY::https://proxy.golang.org,direct"
|
||||||
echo "::add-path::$(dirname $GITHUB_WORKSPACE)/bin"
|
echo "::add-path::$(dirname $GITHUB_WORKSPACE)/bin"
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user