From e13b686776dcc67753d4601b913a6480c5b89c3f Mon Sep 17 00:00:00 2001 From: Jianguo Ma Date: Tue, 30 Jul 2024 08:19:15 +0800 Subject: [PATCH] run test in both native executable and jvm mode against azure services for integration-test samples Signed-off-by: Jianguo Ma --- .github/run-integration-test.sh | 5 ++++- .github/workflows/build.yml | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/run-integration-test.sh b/.github/run-integration-test.sh index cd80b5d..dbb908a 100755 --- a/.github/run-integration-test.sh +++ b/.github/run-integration-test.sh @@ -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 diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d3f661f..143f3fe 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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.