Skip to content

Commit 55395aa

Browse files
author
alxndrsn
committed
ci: add build timeouts
This should prevent runaway builds. I noticed this issue when working on a fork of brianc#2836. Example builds with/without these timeouts: 1. 6 hours: https://github.com/alxndrsn/node-postgres/actions/runs/8277192701 2. 10 minutes: https://github.com/alxndrsn/node-postgres/actions/runs/8277388503 These timeouts are 4-5x what a current healthy build takes.
1 parent 1190782 commit 55395aa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/ci.yml

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ permissions:
77

88
jobs:
99
lint:
10+
timeout-minutes: 5
1011
runs-on: ubuntu-latest
1112
steps:
1213
- uses: actions/checkout@v4
@@ -20,6 +21,7 @@ jobs:
2021
- run: yarn install
2122
- run: yarn lint
2223
build:
24+
timeout-minutes: 10
2325
needs: lint
2426
services:
2527
postgres:

0 commit comments

Comments
 (0)