diff --git a/.github/workflows/testing-framework.yaml b/.github/workflows/testing-framework.yaml index be949d8b6..9d0640460 100644 --- a/.github/workflows/testing-framework.yaml +++ b/.github/workflows/testing-framework.yaml @@ -6,9 +6,9 @@ on: workflow_dispatch: - # pull_request: ## temporary for debugging development purposes - # branches: - # - main + pull_request: ## temporary for debugging development purposes + branches: + - main env: TF_VAR_aws_region: "eu-west-2" @@ -31,6 +31,16 @@ jobs: integration-tests: if: github.repository == 'containers/ai-lab-recipes' runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + include: + - arch: amd64 + aws_image_type: t3a.medium + aws_ami_architecture: x86_64 + - arch: arm64 + aws_image_type: m7g.medium + aws_ami_architecture: arm64 steps: - uses: actions/checkout@v4.1.1 with: @@ -58,6 +68,9 @@ jobs: id: up run: terraform apply -auto-approve -lock=false working-directory: terraform-test-environment-module + env: + TF_VAR_aws_instance_type: ${{ matrix.aws_image_type }} + TF_VAR_aws_ami_architecture: ${{ matrix.aws_ami_architecture }} - name: Terraform Output id: terraform-output @@ -76,7 +89,7 @@ jobs: run: make install - name: Wait for the user data script to finish - run: sleep 240 + run: sleep 300 - name: Run Integration Tests working-directory: ./main/recipes/natural_language_processing/chatbot @@ -89,6 +102,9 @@ jobs: if: always() run: terraform destroy -auto-approve -lock=false working-directory: terraform-test-environment-module + env: + TF_VAR_aws_instance_type: ${{ matrix.aws_image_type }} + TF_VAR_aws_ami_architecture: ${{ matrix.aws_ami_architecture }} - name: Publish Job Results to Slack id: slack