1
0

master-ci.yml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. name: Continuous integration
  2. on:
  3. push:
  4. branches:
  5. - master
  6. jobs:
  7. build:
  8. name: ACI e2e tests
  9. runs-on: ubuntu-latest
  10. env:
  11. GO111MODULE: "on"
  12. steps:
  13. - name: Set up Go 1.14
  14. uses: actions/setup-go@v1
  15. with:
  16. go-version: 1.14
  17. id: go
  18. - name: Checkout code into the Go module directory
  19. uses: actions/checkout@v2
  20. - uses: actions/cache@v2
  21. with:
  22. path: ~/go/pkg/mod
  23. key: go-${{ hashFiles('**/go.sum') }}
  24. - name: Build for ACI e2e tests
  25. run: make -f builder.Makefile cli
  26. - name: ACI e2e Test
  27. env:
  28. AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
  29. AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }}
  30. AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
  31. run: make e2e-aci
  32. windows-build:
  33. name: Windows Build
  34. runs-on: windows-latest
  35. env:
  36. GO111MODULE: "on"
  37. steps:
  38. - name: Set up Go 1.14
  39. uses: actions/setup-go@v1
  40. with:
  41. go-version: 1.14
  42. id: go
  43. - name: Checkout code into the Go module directory
  44. uses: actions/checkout@v2
  45. - uses: actions/cache@v2
  46. with:
  47. path: ~/go/pkg/mod
  48. key: go-${{ hashFiles('**/go.sum') }}
  49. - name: Test
  50. env:
  51. BUILD_TAGS: example,local
  52. run: make -f builder.Makefile test
  53. - name: Build
  54. env:
  55. BUILD_TAGS: example,local
  56. run: make -f builder.Makefile cli
  57. - name: E2E Test
  58. run: make e2e-win-ci
  59. - name: ACI e2e Test
  60. env:
  61. AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
  62. AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }}
  63. AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
  64. run: make e2e-aci