| 1 | trigger: |
| 2 | branches: |
| 3 | include: |
| 4 | - 'main' |
| 5 | tags: |
| 6 | include: |
| 7 | - 'v*' |
| 8 | |
| 9 | jobs: |
| 10 | - job: CI |
| 11 | pool: |
| 12 | vmImage: 'ubuntu-latest' |
| 13 | container: envoyproxy/envoy-build-ubuntu@sha256:b4fe088084579339ae8f7a44af899bbebd86a290af56e5ab7cc85ca99a09499c |
| 14 | steps: |
| 15 | - task: CacheBeta@1 |
| 16 | inputs: |
| 17 | key: './WORKSPACE | ./.bazel* | **/*.bzl' |
| 18 | path: $(Agent.TempDirectory)/tmp |
| 19 | |
| 20 | - bash: ci/check.sh |
| 21 | env: |
| 22 | TEST_TMPDIR: $(Agent.TempDirectory)/tmp |
| 23 | |
| 24 | - bash: tools/generate_lang_files_from_protos.py && test -z "$(git status --porcelain)" |
| 25 | env: |
| 26 | TEST_TMPDIR: $(Agent.TempDirectory)/tmp |
| 27 | |
| 28 | - job: go_build |
| 29 | pool: |
| 30 | vmImage: 'ubuntu-latest' |
| 31 | steps: |
| 32 | - task: GoTool@0 |
| 33 | displayName: "Install Go" |
| 34 | inputs: |
| 35 | version: '1.24.6' |
| 36 | |
| 37 | - task: Go@0 |
| 38 | displayName: "go mod download" |
| 39 | inputs: |
| 40 | command: 'custom' |
| 41 | customCommand: 'mod' |
| 42 | arguments: 'download' |
| 43 | workingDirectory: 'go/' |
| 44 | |
| 45 | - task: Go@0 |
| 46 | displayName: "go mod verify" |
| 47 | inputs: |
| 48 | command: 'custom' |
| 49 | customCommand: 'mod' |
| 50 | arguments: 'verify' |
| 51 | workingDirectory: 'go/' |
| 52 | |
| 53 | - task: Go@0 |
| 54 | displayName: "go build ./..." |
| 55 | inputs: |
| 56 | command: 'build' |
| 57 | arguments: '-v ./...' |
| 58 | workingDirectory: 'go/' |