File tree Expand file tree Collapse file tree 1 file changed +24
-1
lines changed
Expand file tree Collapse file tree 1 file changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -42,15 +42,38 @@ jobs:
4242
4343 - run : java -cp sdk-usage/build/libs/opentelemetry-examples-sdk-usage-0.1.0-SNAPSHOT-all.jar io.opentelemetry.sdk.example.ConfigureSpanProcessorExample
4444
45+ test-declarative-configuration-run :
46+ runs-on : ubuntu-latest
47+ steps :
48+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
49+
50+ - name : Set up JDK for running Gradle
51+ uses : actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
52+ with :
53+ distribution : temurin
54+ java-version : 17
55+
56+ - name : Set up gradle
57+ uses : gradle/actions/setup-gradle@ac638b010cf58a27ee6c972d7336334ccaf61c96 # v4.4.1
58+ with :
59+ cache-read-only : ${{ github.event_name == 'pull_request' }}
60+
61+ - name : Run declarative-configuration
62+ working-directory : declarative-configuration
63+ run : ../gradlew run
64+
4565 # this is not a required check to avoid blocking pull requests if external links break
4666 markdown-link-check :
4767 uses : ./.github/workflows/reusable-markdown-link-check.yml
4868
4969 required-status-check :
5070 needs :
5171 - build
72+ - test-declarative-configuration-run
5273 runs-on : ubuntu-latest
5374 if : always()
5475 steps :
55- - if : needs.build.result != 'success'
76+ - if : >
77+ needs.build.result != 'success' ||
78+ needs.test-declarative-configuration-run.result != 'success'
5679 run: exit 1
You can’t perform that action at this time.
0 commit comments