Fix DD logo URLs in job summary #11
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: Continuous Integration | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
permissions: | |
contents: read | |
jobs: | |
test-action: | |
name: GitHub Actions Test | |
runs-on: ubuntu-latest | |
container: | |
image: adoptopenjdk/openjdk11:latest | |
steps: | |
- name: Checkout | |
id: checkout | |
uses: actions/checkout@v4 | |
- name: Run Instrumentation Action | |
id: test-action | |
uses: ./ | |
with: | |
languages: java | |
service-name: my-service | |
api-key: "dummy" | |
- name: Check If Java Tracing Works | |
run: | | |
LOG_FILE=java-output.log | |
TRACER_INIT_LOG="DATADOG TRACER CONFIGURATION" | |
# there is currently a problem with Test Visibility in the Java tracer that prevents it from exiting when tracing an "empty" Java process, hence the timeout | |
# the "true" is needed to not break the build when the timeout is triggered | |
timeout 10s java -version 2>&1 | tee $LOG_FILE || true | |
grep -q "$TRACER_INIT_LOG" $LOG_FILE || { echo "Error: Output does not contain tracer initialisation log: $TRACER_INIT_LOG"; exit 1; } |