# Go
# Build your Go application.
# https://aka.ms/yaml

queue: 'Hosted Linux Preview'
steps:

- task: GoTool@0

- task: Go@0
  inputs:
    command: 'get'
    arguments: '-d'

- task: Go@0
  inputs:
    command: 'build'
    arguments: '-o "$(build.repository.name)"'

#- task: ArchiveFiles@2
#  inputs:
#    rootFolderOrFile: '$(system.defaultWorkingDirectory)'
#    includeRootFolder: false
#- task: PublishBuildArtifacts@1

# Go
# Build your Go application.
# https://aka.ms/yaml

queue: 'Hosted Linux Preview'
steps:

- task: GoTool@0
  inputs:
    version: '1.10'

- task: Go@0
  inputs:
    command: 'get'
    arguments: '-v -t -d'

- task: Go@0
  inputs:
    command: 'test'
    arguments: '-v'

- task: Go@0
  inputs:
    command: 'build'
    arguments: '-o "$(build.repository.name)"'

#- task: ArchiveFiles@2
#  inputs:
#    rootFolderOrFile: '$(system.defaultWorkingDirectory)'
#    includeRootFolder: false
#- task: PublishBuildArtifacts@1

Add a test step to the YAML template for Go (like CircleCI's template)
Add a test step to the YAML template for Go (like CircleCI's template)