Browse Source

ci: define timeout for jobs

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
(cherry picked from commit 426e3926ef9da15edf8821824bdcdeb25e201bdc)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
CrazyMax 2 years ago
parent
commit
0c4b6b1742
3 changed files with 9 additions and 1 deletions
  1. 2 0
      .github/workflows/.windows.yml
  2. 2 1
      .github/workflows/buildkit.yml
  3. 5 0
      .github/workflows/test.yml

+ 2 - 0
.github/workflows/.windows.yml

@@ -105,6 +105,7 @@ jobs:
 
 
   unit-test:
   unit-test:
     runs-on: ${{ inputs.os }}
     runs-on: ${{ inputs.os }}
+    timeout-minutes: 120
     env:
     env:
       GOPATH: ${{ github.workspace }}\go
       GOPATH: ${{ github.workspace }}\go
       GOBIN: ${{ github.workspace }}\go\bin
       GOBIN: ${{ github.workspace }}\go\bin
@@ -239,6 +240,7 @@ jobs:
 
 
   integration-test:
   integration-test:
     runs-on: ${{ inputs.os }}
     runs-on: ${{ inputs.os }}
+    timeout-minutes: 120
     needs:
     needs:
       - build
       - build
       - integration-test-prepare
       - integration-test-prepare

+ 2 - 1
.github/workflows/buildkit.yml

@@ -45,9 +45,10 @@ jobs:
           retention-days: 1
           retention-days: 1
 
 
   test:
   test:
+    runs-on: ubuntu-20.04
+    timeout-minutes: 120
     needs:
     needs:
       - build
       - build
-    runs-on: ubuntu-20.04
     strategy:
     strategy:
       fail-fast: false
       fail-fast: false
       matrix:
       matrix:

+ 5 - 0
.github/workflows/test.yml

@@ -117,6 +117,7 @@ jobs:
 
 
   unit:
   unit:
     runs-on: ubuntu-20.04
     runs-on: ubuntu-20.04
+    timeout-minutes: 120
     needs:
     needs:
       - build-dev
       - build-dev
     steps:
     steps:
@@ -192,6 +193,7 @@ jobs:
 
 
   docker-py:
   docker-py:
     runs-on: ubuntu-20.04
     runs-on: ubuntu-20.04
+    timeout-minutes: 120
     needs:
     needs:
       - build-dev
       - build-dev
     steps:
     steps:
@@ -239,6 +241,7 @@ jobs:
 
 
   integration-flaky:
   integration-flaky:
     runs-on: ubuntu-20.04
     runs-on: ubuntu-20.04
+    timeout-minutes: 120
     needs:
     needs:
       - build-dev
       - build-dev
     steps:
     steps:
@@ -267,6 +270,7 @@ jobs:
 
 
   integration:
   integration:
     runs-on: ${{ matrix.os }}
     runs-on: ${{ matrix.os }}
+    timeout-minutes: 120
     needs:
     needs:
       - build-dev
       - build-dev
     strategy:
     strategy:
@@ -411,6 +415,7 @@ jobs:
 
 
   integration-cli:
   integration-cli:
     runs-on: ubuntu-20.04
     runs-on: ubuntu-20.04
+    timeout-minutes: 120
     needs:
     needs:
       - build-dev
       - build-dev
       - integration-cli-prepare
       - integration-cli-prepare