|
| 1 | +## Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. |
| 2 | +## SPDX-License-Identifier: Apache-2.0 |
| 3 | + |
| 4 | +# This is a reusable workflow for running the E2E test for Application Signals. |
| 5 | +# It is meant to be called from another workflow. |
| 6 | +# Read more about reusable workflows: https://docs.github.com/en/actions/using-workflows/reusing-workflows#overview |
| 7 | +name: E2E Testing |
| 8 | +on: |
| 9 | + workflow_call: |
| 10 | + inputs: |
| 11 | + staging-instrumentation-name: |
| 12 | + required: true |
| 13 | + type: string |
| 14 | + adot-image-name: |
| 15 | + required: true |
| 16 | + type: string |
| 17 | + |
| 18 | +permissions: |
| 19 | + id-token: write |
| 20 | + contents: read |
| 21 | + |
| 22 | +concurrency: |
| 23 | + group: '${{ github.workflow }} @ ${{ inputs.aws-region }}' |
| 24 | + cancel-in-progress: false |
| 25 | + |
| 26 | + |
| 27 | +jobs: |
| 28 | + upload-main-build: |
| 29 | + runs-on: ubuntu-latest |
| 30 | + steps: |
| 31 | + - name: Configure AWS Credentials |
| 32 | + uses: aws-actions/configure-aws-credentials@v4 |
| 33 | + with: |
| 34 | + role-to-assume: arn:aws:iam::637423224110:role/${{ secrets.STAGING_ARTIFACTS_ACCESS_ROLE_NAME }} |
| 35 | + aws-region: us-east-1 |
| 36 | + |
| 37 | + - uses: actions/download-artifact@v3 |
| 38 | + with: |
| 39 | + name: ${{ inputs.staging-instrumentation-name }} |
| 40 | + |
| 41 | + - name: Upload main-build instrumentation to S3 |
| 42 | + run: aws s3 cp ${{ inputs.staging-instrumentation-name }} s3://adot-autoinstrumentation-node-staging/${{ inputs.staging-instrumentation-name }} |
| 43 | + |
| 44 | + ec2-default: |
| 45 | + needs: [ upload-main-build ] |
| 46 | + uses: aws-observability/aws-application-signals-test-framework/.github/workflows/node-ec2-default-test.yml@main |
| 47 | + secrets: inherit |
| 48 | + with: |
| 49 | + aws-region: us-east-1 |
| 50 | + staging-instrumentation-name: ${{ inputs.staging-instrumentation-name }} |
| 51 | + caller-workflow-name: 'main-build' |
| 52 | + |
| 53 | + ec2-asg: |
| 54 | + needs: [ upload-main-build ] |
| 55 | + uses: aws-observability/aws-application-signals-test-framework/.github/workflows/node-ec2-asg-test.yml@main |
| 56 | + secrets: inherit |
| 57 | + with: |
| 58 | + aws-region: us-east-1 |
| 59 | + staging-instrumentation-name: ${{ inputs.staging-instrumentation-name }} |
| 60 | + caller-workflow-name: 'main-build' |
| 61 | + |
| 62 | + eks: |
| 63 | + uses: aws-observability/aws-application-signals-test-framework/.github/workflows/node-eks-test.yml@main |
| 64 | + secrets: inherit |
| 65 | + with: |
| 66 | + aws-region: us-east-1 |
| 67 | + test-cluster-name: 'e2e-node-adot-test' |
| 68 | + adot-image-name: ${{ inputs.adot-image-name }} |
| 69 | + caller-workflow-name: 'main-build' |
| 70 | + |
| 71 | + k8s: |
| 72 | + uses: aws-observability/aws-application-signals-test-framework/.github/workflows/node-k8s-test.yml@main |
| 73 | + secrets: inherit |
| 74 | + with: |
| 75 | + aws-region: us-east-1 |
| 76 | + adot-image-name: ${{ inputs.adot-image-name }} |
| 77 | + caller-workflow-name: 'main-build' |
0 commit comments