Przeglądaj źródła

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 lat temu
rodzic
commit
0c4b6b1742

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

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

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

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

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

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