update the way env is set

This commit is contained in:
Ajitem Sahasrabuddhe 2019-12-06 16:24:53 +05:30
parent 8bc13046c4
commit da1a889fd6

View File

@ -6,10 +6,6 @@ on:
- master
- v1
env:
GO111MODULE: on
GOPROXY: https://proxy.golang.org
jobs:
test:
strategy:
@ -24,9 +20,11 @@ jobs:
with:
go-version: ${{ matrix.go }}
- name: Set GOPATH and PATH
- name: Set GOPATH, PATH and ENV
run: |
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"
shell: bash