From c3a1e40bafba4e3f7f3f6add361e57474733e0ba Mon Sep 17 00:00:00 2001 From: abitmore Date: Sun, 19 Mar 2023 18:26:10 +0000 Subject: [PATCH] Set a timeout for running unit tests in Github CI --- .github/workflows/build-and-test.mac.yml | 1 + .github/workflows/build-and-test.ubuntu-debug.yml | 1 + .github/workflows/build-and-test.ubuntu-release.yml | 1 + .github/workflows/sonar-scan.yml | 1 + 4 files changed, 4 insertions(+) diff --git a/.github/workflows/build-and-test.mac.yml b/.github/workflows/build-and-test.mac.yml index de5dcd5e8..bf43b5baa 100644 --- a/.github/workflows/build-and-test.mac.yml +++ b/.github/workflows/build-and-test.mac.yml @@ -45,6 +45,7 @@ jobs: make -j 3 -C _build witness_node cli_wallet app_test cli_test chain_test df -h - name: Unit-Tests + timeout-minutes: 15 run: | _build/tests/app_test -l test_suite libraries/fc/tests/run-parallel-tests.sh _build/tests/chain_test -l test_suite diff --git a/.github/workflows/build-and-test.ubuntu-debug.yml b/.github/workflows/build-and-test.ubuntu-debug.yml index 8946b3e03..35a506108 100644 --- a/.github/workflows/build-and-test.ubuntu-debug.yml +++ b/.github/workflows/build-and-test.ubuntu-debug.yml @@ -110,6 +110,7 @@ jobs: du -hs _build/* du -hs /_build/* - name: Unit-Tests + timeout-minutes: 15 run: | _build/tests/app_test -l test_suite df -h diff --git a/.github/workflows/build-and-test.ubuntu-release.yml b/.github/workflows/build-and-test.ubuntu-release.yml index c149e2890..d85aed7b6 100644 --- a/.github/workflows/build-and-test.ubuntu-release.yml +++ b/.github/workflows/build-and-test.ubuntu-release.yml @@ -87,6 +87,7 @@ jobs: make -j 2 -C _build df -h - name: Unit-Tests + timeout-minutes: 15 run: | _build/tests/app_test -l test_suite _build/tests/es_test -l test_suite diff --git a/.github/workflows/sonar-scan.yml b/.github/workflows/sonar-scan.yml index c83b9857a..8356303fd 100644 --- a/.github/workflows/sonar-scan.yml +++ b/.github/workflows/sonar-scan.yml @@ -164,6 +164,7 @@ jobs: rm -rf _build/programs/genesis_util/get_dev_key df -h - name: Unit-Tests + timeout-minutes: 15 run: | _build/tests/app_test -l test_suite df -h