From 3c642fdda708b1fa5475acb9043d72e3b518f283 Mon Sep 17 00:00:00 2001 From: martincostello Date: Mon, 29 Apr 2024 12:52:56 +0100 Subject: [PATCH] Add CI timeouts - No CI job should take longer than an hour. - No individual test run should take longer than 10 minutes. --- .github/workflows/build.yml | 1 + build.cake | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 02b8ae1561..32f71c3469 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,6 +24,7 @@ jobs: build: name: ${{ matrix.os }} runs-on: ${{ matrix.os }} + timeout-minutes: 60 env: # HACK Running on Windows instead of Linux due to https://github.com/stryker-mutator/stryker-net/issues/2741 diff --git a/build.cake b/build.cake index 5b32278f7d..de523dcc8c 100644 --- a/build.cake +++ b/build.cake @@ -157,6 +157,7 @@ Task("__RunTests") Configuration = configuration, Loggers = loggers, NoBuild = true, + ToolTimeout = System.TimeSpan.FromMinutes(10), }); } });