Skip to content

Commit 9670526

Browse files
committed
ci: cap workflow job timeouts at 10 minutes
1 parent e231c27 commit 9670526

6 files changed

Lines changed: 18 additions & 8 deletions

File tree

.github/workflows/build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ jobs:
1313
# Tests already passed before tag was created, so just build and deploy
1414
deploy:
1515
runs-on: ubuntu-latest
16-
timeout-minutes: 30
16+
# Keep this job capped at 10 minutes; never raise it unless explicitly asked.
17+
timeout-minutes: 10
1718
name: "Build and publish to npm"
1819
permissions:
1920
contents: write

.github/workflows/bump_version.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,16 @@ jobs:
1313
# Run all tests first before creating any tags
1414
test:
1515
if: ${{ !startsWith(github.event.head_commit.message, 'chore(release):') }}
16+
# Called workflow jobs are capped at 10 minutes; never raise that unless explicitly asked.
1617
uses: ./.github/workflows/test.yml
1718

1819
# Only bump version and create tag if all tests pass
1920
bump-version:
2021
needs: [test]
2122
if: ${{ !startsWith(github.event.head_commit.message, 'chore(release):') }}
2223
runs-on: ubuntu-latest
23-
timeout-minutes: 30
24+
# Keep this job capped at 10 minutes; never raise it unless explicitly asked.
25+
timeout-minutes: 10
2426
name: "Bump version and create tag"
2527
steps:
2628
- name: Setup Node.js

.github/workflows/github-releases-to-discord.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ on:
77
jobs:
88
github-releases-to-discord:
99
runs-on: ubuntu-latest
10-
timeout-minutes: 30
10+
# Keep this job capped at 10 minutes; never raise it unless explicitly asked.
11+
timeout-minutes: 10
1112
steps:
1213
- name: Setup Node.js
1314
uses: actions/setup-node@v6

.github/workflows/pr_beta_prompt.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ permissions:
1515
jobs:
1616
comment:
1717
runs-on: ubuntu-latest
18+
# Keep this job capped at 10 minutes; never raise it unless explicitly asked.
1819
timeout-minutes: 10
1920
steps:
2021
- name: Setup Node.js

.github/workflows/pr_beta_publish.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ jobs:
2525
publish:
2626
if: ${{ github.event_name == 'workflow_dispatch' || (github.event.issue.pull_request && contains(github.event.comment.body, '/publish-beta')) }}
2727
runs-on: ubuntu-latest
28-
timeout-minutes: 30
28+
# Keep this job capped at 10 minutes; never raise it unless explicitly asked.
29+
timeout-minutes: 10
2930
steps:
3031
- name: Resolve PR and access checks
3132
id: pr

.github/workflows/test.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ on:
1111
jobs:
1212
guard_swiftpm_version:
1313
runs-on: ubuntu-latest
14-
timeout-minutes: 30
14+
# Keep this job capped at 10 minutes; never raise it unless explicitly asked.
15+
timeout-minutes: 10
1516
steps:
1617
- name: Check out
1718
uses: actions/checkout@v6
@@ -24,7 +25,8 @@ jobs:
2425
fi
2526
build_android:
2627
runs-on: ubuntu-latest
27-
timeout-minutes: 30
28+
# Keep this job capped at 10 minutes; never raise it unless explicitly asked.
29+
timeout-minutes: 10
2830
steps:
2931
- name: Check out
3032
uses: actions/checkout@v6
@@ -51,7 +53,8 @@ jobs:
5153
run: bash ./.github/scripts/verify-packed-example.sh android
5254
build_ios:
5355
runs-on: macOS-latest
54-
timeout-minutes: 30
56+
# Keep this job capped at 10 minutes; never raise it unless explicitly asked.
57+
timeout-minutes: 10
5558
steps:
5659
- name: Check out
5760
uses: actions/checkout@v6
@@ -73,7 +76,8 @@ jobs:
7376
run: bash ./.github/scripts/verify-packed-example.sh ios
7477
web:
7578
runs-on: ubuntu-latest
76-
timeout-minutes: 30
79+
# Keep this job capped at 10 minutes; never raise it unless explicitly asked.
80+
timeout-minutes: 10
7781
name: 'Build code and test'
7882
steps:
7983
- name: Check out

0 commit comments

Comments
 (0)