Skip to content

Commit 833ac2b

Browse files
committed
Add timeouts to CI pipelines, use default gitlab config location
1 parent 23c7324 commit 833ac2b

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.github/workflows/ci.yml

+3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ on:
1212
jobs:
1313
build_and_test:
1414
runs-on: ubuntu-latest
15+
timeout-minutes: 20
1516
steps:
1617
- name: Checkout
1718
uses: actions/checkout@v3
@@ -43,6 +44,7 @@ jobs:
4344
needs:
4445
- build_and_test
4546
runs-on: ubuntu-latest
47+
timeout-minutes: 10
4648
strategy:
4749
fail-fast: false
4850
matrix:
@@ -98,6 +100,7 @@ jobs:
98100
needs:
99101
- smoke_test
100102
runs-on: ubuntu-latest
103+
timeout-minutes: 10
101104
if: ${{ github.ref == 'refs/heads/main' && github.head_ref == null }}
102105
permissions:
103106
contents: write

ci/gitlab.yml .gitlab-ci.yml

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
variables:
2+
# Setting a depth of 1 can result in jobs failing if they are not the latest commit when they begin executing.
3+
# See https://docs.gitlab.com/ee/ci/runners/configure_runners.html#shallow-cloning
4+
GIT_DEPTH: '3'
5+
16
before_script:
27
- apt-get update
38
- wget --no-verbose https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
@@ -6,16 +11,19 @@ before_script:
611

712
node:18:
813
image: node:18
14+
timeout: 20 minutes
915
script:
1016
- PARALLEL_BUILD=false PARALLEL_E2E=false EXPLICIT_WAIT_TIMEOUT=20000 TEST_TIMEOUT=60000 DOCKER=true npm test
1117

1218
node:20:
1319
image: node:20
20+
timeout: 20 minutes
1421
script:
1522
- PARALLEL_BUILD=false PARALLEL_E2E=false EXPLICIT_WAIT_TIMEOUT=20000 TEST_TIMEOUT=60000 DOCKER=true npm test
1623

1724
node:21:
1825
image: node:21
26+
timeout: 20 minutes
1927
script:
2028
- PARALLEL_BUILD=false PARALLEL_E2E=false EXPLICIT_WAIT_TIMEOUT=20000 TEST_TIMEOUT=60000 DOCKER=true npm test
2129

0 commit comments

Comments
 (0)