From 18443f3170410a8481c0c506b4a06492514ea14d Mon Sep 17 00:00:00 2001 From: Arthur Schreiber Date: Fri, 7 Apr 2023 22:26:24 +0200 Subject: [PATCH] ci: timeout builds after 20 minutes (#1534) --- .github/workflows/nodejs.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index bd6cdfc1d..381469884 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -14,6 +14,7 @@ jobs: lint: name: Linting runs-on: ubuntu-latest + steps: - uses: actions/checkout@v3 with: @@ -60,8 +61,8 @@ jobs: test: name: SQL Server Linux / Node.js ${{ matrix.node-version }} - runs-on: ubuntu-latest + timeout-minutes: 20 strategy: matrix: @@ -178,8 +179,8 @@ jobs: test-windows: name: SQL Server Windows / Node.js ${{ matrix.node-version }} - runs-on: windows-2022 + timeout-minutes: 20 strategy: matrix: @@ -343,6 +344,7 @@ jobs: azure-sql-auth: name: Azure SQL Server / Node.js 16.x runs-on: ubuntu-latest + timeout-minutes: 20 # Only run these tests if we have access to the secrets if: ${{ github.event_name == 'push' || github.repository == github.event.pull_request.head.repo.full_name }} @@ -396,6 +398,7 @@ jobs: azure-ad-auth: name: Azure SQL Server / Node.js 16.x runs-on: ubuntu-latest + timeout-minutes: 20 # Only run these tests if we have access to the secrets if: ${{ github.event_name == 'push' || github.repository == github.event.pull_request.head.repo.full_name }} @@ -454,6 +457,7 @@ jobs: azure-ad-service-principal-auth: name: Azure SQL Server / Node.js 16.x runs-on: ubuntu-latest + timeout-minutes: 20 # Only run these tests if we have access to the secrets if: ${{ github.event_name == 'push' || github.repository == github.event.pull_request.head.repo.full_name }}