name: ACI integration tests on: push: branches: - main pull_request: jobs: check-optional-tests: name: Check if needs to run ACI tests runs-on: ubuntu-latest outputs: trigger-aci: ${{steps.runacitest.outputs.triggered}} steps: - uses: khan/pull-request-comment-trigger@master name: Check if test ACI if: github.event_name == 'pull_request' id: runacitest with: trigger: '/test-aci' aci-tests: name: ACI e2e tests runs-on: ubuntu-latest env: GO111MODULE: "on" needs: check-optional-tests if: github.ref == 'refs/heads/main' || needs.check-optional-tests.outputs.trigger-aci == 'true' steps: - name: Set up Go 1.16 uses: actions/setup-go@v2 with: go-version: 1.16 id: go - name: Setup docker CLI run: | curl https://download.docker.com/linux/static/stable/x86_64/docker-20.10.3.tgz | tar xz sudo cp ./docker/docker /usr/bin/ && rm -rf docker && docker version - name: Checkout code into the Go module directory uses: actions/checkout@v2 - uses: actions/cache@v2 with: path: ~/go/pkg/mod key: go-${{ hashFiles('**/go.sum') }} - name: Build for ACI e2e tests run: make -f builder.Makefile cli - name: ACI e2e Test env: AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }} AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }} AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }} run: make e2e-aci