Issue 2021 - Instrument for AWS X-Ray with X-Ray SDK #9427
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Chunk Build Status | |
on: pull_request | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'corretto' | |
- name: Cache dependencies | |
uses: actions/cache@v3 | |
with: | |
path: java/.m2/repository | |
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
restore-keys: | | |
${{ runner.os }}-maven- | |
- name: Resolve dependencies | |
run: mvn de.qaware.maven:go-offline-maven-plugin:resolve-dependencies -Dmaven.repo.local=.m2/repository | |
working-directory: ./java | |
- name: Validate chunk build configuration | |
working-directory: ./java/build | |
run: | | |
CHUNKS_YAML=${{ github.workspace }}/.github/config/chunks.yaml | |
MAVEN_PROJECT=${{ github.workspace }}/java | |
mvn compile exec:java -q -e -Dexec.mainClass=sleeper.build.chunks.ValidateProjectChunks \ | |
-Dmaven.repo.local=../.m2/repository \ | |
-Dexec.args="$CHUNKS_YAML $MAVEN_PROJECT" |