-
Notifications
You must be signed in to change notification settings - Fork 509
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run integration tests in a different workflow which is triggered only…
… after a successful build
- Loading branch information
1 parent
704917f
commit ed85742
Showing
2 changed files
with
38 additions
and
8 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Java Client v3 Integration Tests | ||
|
||
on: | ||
workflow_run: | ||
workflows: ["Java Client v3 Build"] | ||
types: | ||
- completed | ||
|
||
jobs: | ||
integrations-tests: | ||
runs-on: ubuntu-latest | ||
environment: integration-tests | ||
if: ${{ github.event.workflow_run.conclusion == 'success' }} | ||
name: Java Client v3 Integration test | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Set up Zulu JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: "zulu" | ||
java-version: "17" | ||
- name: Run Integration tests | ||
run: | | ||
cd conductor-clients/java/conductor-java-sdk | ||
./gradlew -p tests test | ||
env: | ||
CONDUCTOR_SERVER_URL: ${{ secrets.CONDUCTOR_SERVER_URL }} | ||
CONDUCTOR_SERVER_AUTH_KEY: ${{ secrets.CONDUCTOR_SERVER_AUTH_KEY }} | ||
CONDUCTOR_SERVER_AUTH_SECRET: ${{ secrets.CONDUCTOR_SERVER_AUTH_SECRET }} | ||
- name: Publish Test Report | ||
uses: mikepenz/action-junit-report@v3 | ||
if: always() | ||
with: | ||
report_paths: 'conductor-clients/java/**/build/test-results/test/TEST-*.xml' | ||
|