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 - 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