-
Notifications
You must be signed in to change notification settings - Fork 93
51 lines (45 loc) · 1.8 KB
/
centralized-sampling-tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
name: Centralized Sampling Integration Tests
on:
push:
branches:
- master
paths:
- 'centralized-sampling-tests/**'
workflow_dispatch:
permissions:
id-token: write
jobs:
run_java_tests:
name: Run centralized sampling integration tests for OTel Java
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'zulu'
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.AWS_CENTRALIZED_SAMPLING_ROLE }}
role-duration-seconds: 1200
aws-region: us-west-2
- name: Build with Gradle Spring Boot App
run: ./gradlew :sample-apps:spring-boot:build
working-directory: centralized-sampling-tests
- name: Build with Gradle Integration Tests
run: ./gradlew :integration-tests:build
working-directory: centralized-sampling-tests
- name: Run test containers
run: docker-compose -f docker-compose-integration-tests.yml -f docker-compose-java-app.yml up --abort-on-container-exit
working-directory: centralized-sampling-tests
env:
INSTANCE_ID: ${{ github.run_id }}-${{ github.run_number }}
LISTEN_ADDRESS: 0.0.0.0:8080
AWS_REGION: us-west-2