Skip to content

Commit 4dcf3ef

Browse files
authored
Merge pull request #3700 from cdr/jsjoeio-add-job-timeouts
fix: add timeouts to CI jobs
2 parents bb1b129 + 8695c87 commit 4dcf3ef

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/ci.yaml

+8-1
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ on:
1616

1717
jobs:
1818
prebuild:
19-
name: Pre-build checks
19+
name: Pre-Build checks
2020
runs-on: ubuntu-latest
21+
timeout-minutes: 5
2122
env:
2223
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
2324
steps:
@@ -65,6 +66,7 @@ jobs:
6566
name: Run audit-ci
6667
needs: prebuild
6768
runs-on: ubuntu-latest
69+
timeout-minutes: 5
6870
steps:
6971
- name: Checkout repo
7072
uses: actions/checkout@v2
@@ -95,6 +97,7 @@ jobs:
9597
name: Build
9698
needs: prebuild
9799
runs-on: ubuntu-latest
100+
timeout-minutes: 30
98101
steps:
99102
- uses: actions/checkout@v2
100103
with:
@@ -170,6 +173,7 @@ jobs:
170173
name: x86-64 Linux build
171174
needs: build
172175
runs-on: ubuntu-latest
176+
timeout-minutes: 15
173177
container: "centos:7"
174178

175179
steps:
@@ -240,6 +244,7 @@ jobs:
240244
name: Linux ARM64 cross-compile build
241245
needs: build
242246
runs-on: ubuntu-16.04
247+
timeout-minutes: 15
243248
env:
244249
AR: aarch64-linux-gnu-ar
245250
CC: aarch64-linux-gnu-gcc
@@ -293,6 +298,7 @@ jobs:
293298
name: x86-64 macOS build
294299
needs: build
295300
runs-on: macos-latest
301+
timeout-minutes: 15
296302
steps:
297303
- uses: actions/checkout@v2
298304

@@ -333,6 +339,7 @@ jobs:
333339
name: End-to-end tests
334340
needs: package-linux-amd64
335341
runs-on: ubuntu-latest
342+
timeout-minutes: 15
336343
env:
337344
# Since we build code-server we might as well run tests from the release
338345
# since VS Code will load faster due to the bundling.

0 commit comments

Comments
 (0)