Update azure-pipelines-2.yml

This commit is contained in:
l198881 2021-05-18 08:23:55 -03:00 committed by GitHub
parent 75a13c644a
commit 4977ff44bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,10 +7,10 @@ trigger:
- main
pool:
vmImage: ubuntu-latest
vmImage: ubuntu-latest-v22
variables:
GOBIN: '$(GOPATH)/binj' # Go binaries path
GOBIN: '$(GOPATH)/bin' # Go binaries path
GOROOT: '/usr/local/go1.11' # Go installation path
GOPATH: '$(system.defaultWorkingDirectory)/gopath' # Go workspace path
modulePath: '$(GOPATH)/src/github.com/$(build.repository.name)' # Path to the module's code
@ -33,7 +33,7 @@ steps:
if [ -f Gopkg.toml ]; then
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
dep ensure
fi
If
go build -v .
workingDirectory: '$(modulePath)'
displayName: 'Get dependencies, then build'