From 3f99e51a6f050b555d2b7e3092b114428185dd28 Mon Sep 17 00:00:00 2001 From: Antony Jones Date: Tue, 7 Jul 2020 15:41:26 +0100 Subject: [PATCH] make builds time out after a reasonable period (#5100) --- .github/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ff0ec4f633..abb80bd3fb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,6 +3,7 @@ on: [push, pull_request] jobs: Tests: runs-on: ${{ matrix.os }} + timeout-minutes: 6 strategy: matrix: node-version: [8, 10, 12, 14] @@ -18,12 +19,14 @@ jobs: CI: true Lint: runs-on: ubuntu-latest + timeout-minutes: 2 steps: - uses: actions/checkout@v1 - uses: actions/setup-node@v1 - run: 'npm i && npm run lint' Unit: runs-on: ${{ matrix.os }} + timeout-minutes: 3 strategy: matrix: os: [ubuntu-latest, windows-latest, macOS-latest]