Skip to content

Commit

Permalink
Add timeouts to CI pipelines, use default gitlab config location
Browse files Browse the repository at this point in the history
  • Loading branch information
davidje13 committed Oct 28, 2023
1 parent 23c7324 commit 833ac2b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ on:
jobs:
build_and_test:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down Expand Up @@ -43,6 +44,7 @@ jobs:
needs:
- build_and_test
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -98,6 +100,7 @@ jobs:
needs:
- smoke_test
runs-on: ubuntu-latest
timeout-minutes: 10
if: ${{ github.ref == 'refs/heads/main' && github.head_ref == null }}
permissions:
contents: write
Expand Down
8 changes: 8 additions & 0 deletions ci/gitlab.yml → .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
variables:
# Setting a depth of 1 can result in jobs failing if they are not the latest commit when they begin executing.
# See https://docs.gitlab.com/ee/ci/runners/configure_runners.html#shallow-cloning
GIT_DEPTH: '3'

before_script:
- apt-get update
- wget --no-verbose https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
Expand All @@ -6,16 +11,19 @@ before_script:

node:18:
image: node:18
timeout: 20 minutes
script:
- PARALLEL_BUILD=false PARALLEL_E2E=false EXPLICIT_WAIT_TIMEOUT=20000 TEST_TIMEOUT=60000 DOCKER=true npm test

node:20:
image: node:20
timeout: 20 minutes
script:
- PARALLEL_BUILD=false PARALLEL_E2E=false EXPLICIT_WAIT_TIMEOUT=20000 TEST_TIMEOUT=60000 DOCKER=true npm test

node:21:
image: node:21
timeout: 20 minutes
script:
- PARALLEL_BUILD=false PARALLEL_E2E=false EXPLICIT_WAIT_TIMEOUT=20000 TEST_TIMEOUT=60000 DOCKER=true npm test

Expand Down

0 comments on commit 833ac2b

Please sign in to comment.