From 3bee5d30850ea64b4620ee7ea133e56b0df13230 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Wo=CC=81jcik?= <3044353+pwojcikdev@users.noreply.github.com> Date: Mon, 24 Apr 2023 16:45:04 +0200 Subject: [PATCH] Run tests only if build succeeds --- .github/workflows/unit_tests.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index 16a5375c..39145710 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -40,6 +40,7 @@ jobs: run: ci/prepare/macos/prepare.sh - name: Build Tests + id: build run: ci/build.sh - name: Save Build Cache @@ -52,12 +53,15 @@ jobs: key: ${{ runner.os }}-build-cache - name: Core Tests + if: steps.build.outcome == 'success' && (success() || failure()) run: cd build && ../ci/tests/run-core-tests.sh - name: RPC Tests + if: steps.build.outcome == 'success' && (success() || failure()) run: cd build && ../ci/tests/run-rpc-tests.sh - name: System Tests + if: steps.build.outcome == 'success' && (success() || failure()) run: cd build && ../ci/tests/run-system-tests.sh linux_test: @@ -100,6 +104,7 @@ jobs: run: sudo -E ci/prepare/linux/prepare.sh - name: Build Tests + id: build run: ci/build.sh - name: Save Build Cache @@ -112,15 +117,19 @@ jobs: key: ${{ runner.os }}-${{ env.COMPILER }}-build-cache - name: Core Tests + if: steps.build.outcome == 'success' && (success() || failure()) run: cd build && ../ci/tests/run-core-tests.sh - name: RPC Tests + if: steps.build.outcome == 'success' && (success() || failure()) run: cd build && ../ci/tests/run-rpc-tests.sh - name: System Tests + if: steps.build.outcome == 'success' && (success() || failure()) run: cd build && ../ci/tests/run-system-tests.sh - name: QT Tests + if: steps.build.outcome == 'success' && (success() || failure()) run: cd build && ../ci/tests/run-qt-tests.sh windows_test: