Skip to content

Commit 48ea981

Browse files
committed
validate: add job timeouts
The default github timeout is 6 hours which is way to long. In case there is ever a hang abort after 10 minutes as all these jobs should be quite fast. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
1 parent e8aef5d commit 48ea981

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/validate.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ env:
1111
jobs:
1212
basic:
1313
runs-on: ubuntu-24.04
14+
timeout-minutes: 10
1415
steps:
1516
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
1617
- name: install deps
@@ -23,6 +24,7 @@ jobs:
2324

2425
lint:
2526
runs-on: ubuntu-24.04
27+
timeout-minutes: 10
2628
defaults:
2729
run:
2830
working-directory: ./common
@@ -67,6 +69,7 @@ jobs:
6769
# only run this on PRs
6870
if: github.event_name == 'pull_request'
6971
runs-on: ubuntu-24.04
72+
timeout-minutes: 10
7073
env:
7174
# Base commit sha that we use the lint the commit from
7275
EPOCH_TEST_COMMIT: "${{ github.event.pull_request.base.sha }}"
@@ -88,6 +91,7 @@ jobs:
8891

8992
go-vendor:
9093
runs-on: ubuntu-24.04
94+
timeout-minutes: 10
9195
steps:
9296
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
9397
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6

0 commit comments

Comments
 (0)