Skip to content

Commit 2e46410

Browse files
authored
Merge pull request #1157 from cloudflare/concurrency-and-limits-for-actions
build(actions): add concurrency and timeouts for GitHub Actions
2 parents 48219c8 + 5dfb591 commit 2e46410

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,15 @@ on:
88
- main
99
- next
1010

11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
14+
1115
jobs:
1216
lint:
1317
name: lint
1418
runs-on: ubuntu-latest
15-
19+
timeout-minutes: 5
1620

1721
steps:
1822
- uses: actions/checkout@v4
@@ -30,6 +34,7 @@ jobs:
3034
test:
3135
name: test
3236
runs-on: ubuntu-latest
37+
timeout-minutes: 10
3338

3439
steps:
3540
- uses: actions/checkout@v4
@@ -47,6 +52,7 @@ jobs:
4752
examples:
4853
name: examples
4954
runs-on: ubuntu-latest
55+
timeout-minutes: 5
5056

5157
steps:
5258
- uses: actions/checkout@v4
@@ -59,7 +65,7 @@ jobs:
5965
run: |
6066
yarn install
6167
62-
- env:
68+
- env:
6369
CLOUDFLARE_ACCOUNT_ID: f037e56e89293a057740de681ac9abbe
6470
CLOUDFLARE_EMAIL: [email protected]
6571
CLOUDFLARE_ZONE_ID: 0da42c8d2132a9ddaf714f9e7c92011

.github/workflows/release-doctor.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,15 @@ on:
33
pull_request:
44
workflow_dispatch:
55

6+
concurrency:
7+
group: ${{ github.workflow }}-${{ github.ref }}
8+
cancel-in-progress: true
9+
610
jobs:
711
release_doctor:
812
name: release doctor
913
runs-on: ubuntu-latest
14+
timeout-minutes: 2
1015
if: github.repository == 'cloudflare/cloudflare-typescript' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next')
1116

1217
steps:

0 commit comments

Comments
 (0)