|
32 | 32 | - name: Build |
33 | 33 | run: make all |
34 | 34 |
|
| 35 | + Minikube-IntegrationTests: |
| 36 | + name: Minikube |
| 37 | + needs: [ Build ] |
| 38 | + runs-on: ubuntu-latest |
| 39 | + timeout-minutes: 30 |
| 40 | + strategy: |
| 41 | + matrix: |
| 42 | + scenario: [default, appsignals-disabled, appsignals-disabled-multi-agents, appsignals-enabled-multi-agents] |
| 43 | + steps: |
| 44 | + - uses: actions/checkout@v3 |
| 45 | + |
| 46 | + - name: Start minikube |
| 47 | + uses: medyagh/setup-minikube@master |
| 48 | + with: |
| 49 | + driver: docker |
| 50 | + |
| 51 | + - name: Install Terraform |
| 52 | + uses: hashicorp/setup-terraform@v3 |
| 53 | + with: |
| 54 | + terraform_version: "1.1.7" |
| 55 | + |
| 56 | + - name: Run scenario test |
| 57 | + run: | |
| 58 | + cd integration-tests/amazon-cloudwatch-observability/terraform/minikube/scenarios/${{ matrix.scenario }} |
| 59 | + terraform init |
| 60 | + terraform apply -auto-approve |
| 61 | + terraform destroy -auto-approve |
| 62 | +
|
| 63 | + - name: Cleanup on failure |
| 64 | + if: ${{ cancelled() || failure() }} |
| 65 | + run: | |
| 66 | + cd integration-tests/amazon-cloudwatch-observability/terraform/minikube/scenarios/${{ matrix.scenario }} |
| 67 | + terraform destroy -auto-approve || true |
| 68 | +
|
35 | 69 | EKS-IntegrationTest: |
36 | 70 | name: EKS-IntegrationTest |
37 | | - needs: [ Build ] |
| 71 | + needs: [ Minikube-IntegrationTests ] |
38 | 72 | runs-on: ubuntu-latest |
39 | 73 | timeout-minutes: 60 |
40 | 74 | steps: |
|
95 | 129 |
|
96 | 130 | EKS-IntegrationTest-Win2022: |
97 | 131 | name: EKS-IntegrationTest-Win2022 |
98 | | - needs: [ Build ] |
| 132 | + needs: [ Minikube-IntegrationTests ] |
99 | 133 | runs-on: ubuntu-latest |
100 | 134 | timeout-minutes: 60 |
101 | 135 | steps: |
@@ -156,7 +190,7 @@ jobs: |
156 | 190 |
|
157 | 191 | EKS-IntegrationTest-Win2019: |
158 | 192 | name: EKS-IntegrationTest-Win2019 |
159 | | - needs: [ Build ] |
| 193 | + needs: [ Minikube-IntegrationTests ] |
160 | 194 | runs-on: ubuntu-latest |
161 | 195 | timeout-minutes: 60 |
162 | 196 | steps: |
|
0 commit comments