From d575f31e2391a132e8b2f2f6840adaa93db1dcce Mon Sep 17 00:00:00 2001 From: Curve Date: Fri, 8 Dec 2023 13:10:10 +0100 Subject: [PATCH] feat(ci): skip duplicate reports --- .github/workflows/ci.yml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 80f7b36..575f123 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,21 +28,27 @@ jobs: run: | mvn test -Dtest="CucumberUnitTest" -Dsurefire.failIfNoSpecifiedTests=false + - name: ๐Ÿงช Integration Tests + run: | + mvn test -Dtest="CucumberIntegrationTest" -Dsurefire.failIfNoSpecifiedTests=false + + - name: ๐Ÿ” Check for duplicate reports + id: skip + uses: fkirc/skip-duplicate-actions@v5 + with: + concurrent_skipping: "always" + - name: ๐Ÿ“‹ Unit Test Report uses: phoenix-actions/test-reporting@v8 - if: success() || failure() + if: steps.skip.should_skip != 'true' && (success() || failure()) with: name: ๐Ÿ“‹ Unit Test Report reporter: java-junit path: "**/*CucumberUnitTest.xml" - - name: ๐Ÿงช Integration Tests - run: | - mvn test -Dtest="CucumberIntegrationTest" -Dsurefire.failIfNoSpecifiedTests=false - - name: ๐Ÿ“‹ Integration Test Report uses: phoenix-actions/test-reporting@v8 - if: success() || failure() + if: steps.skip.should_skip != 'true' && (success() || failure()) with: name: ๐Ÿ“‹ Integration Test Report reporter: java-junit