mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
c6950d2cb0
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
54 lines
1.1 KiB
YAML
54 lines
1.1 KiB
YAML
# Go
|
|
# Build your Go project.
|
|
# Add steps that test, save build artifacts, deploy, and more:
|
|
# https://docs.microsoft.com/azure/devops/pipelines/languages/go
|
|
|
|
trigger:
|
|
- master
|
|
|
|
variables:
|
|
GOVERSION: 1.13
|
|
|
|
jobs:
|
|
- job: Linux
|
|
pool:
|
|
vmImage: 'ubuntu-latest'
|
|
steps:
|
|
- task: GoTool@0
|
|
displayName: 'Use Go $(GOVERSION)'
|
|
inputs:
|
|
version: $(GOVERSION)
|
|
- task: Go@0
|
|
inputs:
|
|
command: test
|
|
arguments: -race -v ./...
|
|
displayName: 'Execute Tests'
|
|
|
|
- job: Mac
|
|
pool:
|
|
vmImage: 'macos-latest'
|
|
steps:
|
|
- task: GoTool@0
|
|
displayName: 'Use Go $(GOVERSION)'
|
|
inputs:
|
|
version: $(GOVERSION)
|
|
- task: Go@0
|
|
inputs:
|
|
command: test
|
|
arguments: -race -v ./...
|
|
displayName: 'Execute Tests'
|
|
|
|
- job: Windows
|
|
pool:
|
|
vmImage: 'windows-latest'
|
|
steps:
|
|
- task: GoTool@0
|
|
displayName: 'Use Go $(GOVERSION)'
|
|
inputs:
|
|
version: $(GOVERSION)
|
|
- task: Go@0
|
|
inputs:
|
|
command: test
|
|
arguments: -race -v ./...
|
|
displayName: 'Execute Tests'
|