From 3955d5a0163f207e7db0852dd3a5dc6d47818efb Mon Sep 17 00:00:00 2001 From: PHAM HOANG HUNG Date: Fri, 2 Aug 2024 09:07:41 +0700 Subject: [PATCH] MARP-626 Fix for Dev Fail on Market-Monitor --- .github/workflows/ci.yml | 13 ++++++++++++- .github/workflows/dev.yml | 2 +- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 87ca516..1e0ef96 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -49,7 +49,7 @@ jobs: maven-version: ${{ inputs.mvnVersion }} - name: Build with Maven - run: mvn clean verify --batch-mode ${{ inputs.mvnArgs }} + run: mvn clean verify --batch-mode --fail-at-end ${{ inputs.mvnArgs }} - name: Publish Unit Test Results uses: EnricoMi/publish-unit-test-result-action@v2 @@ -66,3 +66,14 @@ jobs: */target/*.iar */target/*-[0-9]*.jar *product/target/*.zip + + - name: Archive test reports + uses: actions/upload-artifact@v4 + if: failure() + with: + name: test-reports + retention-days: 5 + path: | + */target/testEngineOut.log + */target/selenide/* + */target/ivyEngine/deploy/*/*.deploymentLog diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index c64173b..deae5c8 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -25,6 +25,6 @@ jobs: build: uses: ./.github/workflows/ci.yml with: - mvnArgs: '"-Divy.engine.download.url=https://dev.axonivy.com/permalink/${{ inputs.ivyVersion }}/axonivy-engine.zip" "-Divy.engine.version=(10.0.0,]" "-Dproject.build.plugin.version=${{ inputs.ivyPluginVersion }}" "-Dtester.version=${{ inputs.testerVersion }}" + mvnArgs: '"-Divy.engine.download.url=https://dev.axonivy.com/permalink/dev/axonivy-engine.zip" "-Divy.engine.version=(10.0.0,]"' javaVersion: 21 mvnVersion: 3.9.8