Skip to content

Commit 4e2fd53

Browse files
KKelvinLowyTrivail
andauthored
Update Master Build for end to end testing (#18)
* Update master-build.yml * ci: update aoc image repo * ci: setup JDK 11 instead of JDK 1.1 Co-authored-by: Ying <[email protected]>
1 parent dd4d1b5 commit 4e2fd53

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/master-build.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,41 @@ jobs:
5757
context: .
5858
tags: 611364707713.dkr.ecr.us-west-2.amazonaws.com/amazon/aws-otel-js-sample-app:${{ github.sha }}
5959
push: true
60+
61+
62+
e2etest-ecs:
63+
strategy:
64+
matrix:
65+
type: [EC2, FARGATE]
66+
runs-on: ubuntu-latest
67+
needs: [build_docker]
68+
steps:
69+
- name: Configure AWS Credentials
70+
uses: aws-actions/configure-aws-credentials@v1
71+
with:
72+
aws-access-key-id: ${{ secrets.INTEG_TEST_AWS_KEY_ID }}
73+
aws-secret-access-key: ${{ secrets.INTEG_TEST_AWS_KEY_SECRET }}
74+
aws-region: us-west-2
75+
76+
- name: Set up JDK 11
77+
uses: actions/setup-java@v1
78+
with:
79+
java-version: 11
80+
81+
- name: Set up terraform
82+
uses: hashicorp/setup-terraform@v1
83+
84+
- name: Check out testing framework
85+
uses: actions/checkout@v2
86+
with:
87+
repository: 'aws-observability/aws-otel-collector-test-framework'
88+
ref: 'terraform'
89+
90+
- name: Run testing suite
91+
run: |
92+
cd terraform/ecs && terraform init && terraform apply -auto-approve -var="ecs_launch_type=${{ matrix.type }}" -var="aoc_image_repo=020628701572.dkr.ecr.us-west-2.amazonaws.com/aws/aws-otel-collector" -var="aoc_version=latest" -var="data_emitter_image=611364707713.dkr.ecr.us-west-2.amazonaws.com/amazon/aws-otel-js-sample-app:${{ github.sha }}"
6093
94+
- name: Destroy resources
95+
if: ${{ always() }}
96+
run: |
97+
cd terraform/ecs && terraform destroy -auto-approve

0 commit comments

Comments
 (0)