azure-pipelines.yml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. # Go
  2. # Build your Go project.
  3. # Add steps that test, save build artifacts, deploy, and more:
  4. # https://docs.microsoft.com/azure/devops/pipelines/languages/go
  5. trigger:
  6. - master
  7. variables:
  8. GOVERSION: 1.13
  9. jobs:
  10. - job: Linux
  11. pool:
  12. vmImage: 'ubuntu-latest'
  13. steps:
  14. - task: GoTool@0
  15. displayName: 'Use Go $(GOVERSION)'
  16. inputs:
  17. version: $(GOVERSION)
  18. - task: Go@0
  19. inputs:
  20. command: test
  21. arguments: -race -v ./...
  22. displayName: 'Execute Tests'
  23. - job: Mac
  24. pool:
  25. vmImage: 'macos-latest'
  26. steps:
  27. - task: GoTool@0
  28. displayName: 'Use Go $(GOVERSION)'
  29. inputs:
  30. version: $(GOVERSION)
  31. - task: Go@0
  32. inputs:
  33. command: test
  34. arguments: -race -v ./...
  35. displayName: 'Execute Tests'
  36. - job: Windows
  37. pool:
  38. vmImage: 'windows-latest'
  39. steps:
  40. - task: GoTool@0
  41. displayName: 'Use Go $(GOVERSION)'
  42. inputs:
  43. version: $(GOVERSION)
  44. - task: Go@0
  45. inputs:
  46. command: test
  47. arguments: -race -v ./...
  48. displayName: 'Execute Tests'