Skip to content

Commit

Permalink
run test in both native executable and jvm mode against azure service…
Browse files Browse the repository at this point in the history
…s for integration-test samples

Signed-off-by: Jianguo Ma <[email protected]>
  • Loading branch information
majguo committed Jul 30, 2024
1 parent c95240b commit e13b686
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/run-integration-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,8 @@ export QUARKUS_AZURE_COSMOS_ENDPOINT=$(az cosmosdb show \
-g ${RESOURCE_GROUP_NAME} \
--query documentEndpoint -o tsv)

# Run the integration tests with existing native executables against the Azure services
# Run integration test with existing native executables against Azure services
mvn -B test-compile failsafe:integration-test -Dnative -Dazure.test=true

# Run both unit test and integration test in JVM mode against Azure services
mvn -B verify -Dazure.test=true
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ jobs:
if: ${{ env.AZURE_CLIENT_ID != '' && env.AZURE_TENANT_ID != '' && env.AZURE_SUBSCRIPTION_ID != '' }}

- name: Run tests against Azure services
run: .github/run-integration-test.sh
run: |
cd integration-tests
../.github/run-integration-test.sh
if: ${{ env.AZURE_CLIENT_ID != '' && env.AZURE_TENANT_ID != '' && env.AZURE_SUBSCRIPTION_ID != '' }}

# Fix error: Client assertion is not within its valid time range.
Expand Down

0 comments on commit e13b686

Please sign in to comment.