Skip to content

Bump the centralized-spring-gradle-deps group (#682) #37

Bump the centralized-spring-gradle-deps group (#682)

Bump the centralized-spring-gradle-deps group (#682) #37

# 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@v3
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