Skip to content

Commit 2feb465

Browse files
committed
chore(ci): limit workflow jobs to 30 minutes
1 parent 1e63c98 commit 2feb465

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ on:
1212
jobs:
1313
# Tests already passed before tag was created, so just build and deploy
1414
deploy:
15+
timeout-minutes: 30
1516
runs-on: ubuntu-latest
1617
name: "Build and publish to npm"
1718
permissions:

.github/workflows/bump_version.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,13 @@ on:
1212
jobs:
1313
# Run all tests first before creating any tags
1414
test:
15+
timeout-minutes: 30
1516
if: ${{ !startsWith(github.event.head_commit.message, 'chore(release):') }}
1617
uses: ./.github/workflows/test.yml
1718

1819
# Only bump version and create tag if all tests pass
1920
bump-version:
21+
timeout-minutes: 30
2022
needs: [test]
2123
if: ${{ !startsWith(github.event.head_commit.message, 'chore(release):') }}
2224
runs-on: ubuntu-latest

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66

77
jobs:
88
github-releases-to-discord:
9+
timeout-minutes: 30
910
runs-on: ubuntu-latest
1011
steps:
1112
- name: Checkout

.github/workflows/test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on:
1010

1111
jobs:
1212
guard_swiftpm_version:
13+
timeout-minutes: 30
1314
runs-on: ubuntu-latest
1415
steps:
1516
- name: Check out
@@ -22,6 +23,7 @@ jobs:
2223
exit 1
2324
fi
2425
build_android:
26+
timeout-minutes: 30
2527
runs-on: ubuntu-latest
2628
steps:
2729
- name: Check out
@@ -39,6 +41,7 @@ jobs:
3941
id: build_code
4042
run: bun run verify:android
4143
build_ios:
44+
timeout-minutes: 30
4245
runs-on: macOS-latest
4346
steps:
4447
- name: Check out
@@ -51,6 +54,7 @@ jobs:
5154
id: build_code
5255
run: bun run verify:ios
5356
web:
57+
timeout-minutes: 30
5458
runs-on: ubuntu-latest
5559
name: 'Build code and test'
5660
steps:

0 commit comments

Comments
 (0)