Skip to content

Commit

Permalink
Merge pull request #1206 from cloudflare/concurrency-and-limits-for-a…
Browse files Browse the repository at this point in the history
…ctions

build(actions): add concurrency and timeouts for GitHub Actions
  • Loading branch information
jacobbednarz authored Jul 18, 2024
2 parents 0aed308 + e77994f commit b35caae
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: CI

on:
push:
branches:
Expand All @@ -8,11 +9,15 @@ on:
- main
- next

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
lint:
name: lint
runs-on: ubuntu-latest

timeout-minutes: 5

steps:
- uses: actions/checkout@v4
Expand All @@ -33,6 +38,7 @@ jobs:
test:
name: test
runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- uses: actions/checkout@v4
Expand All @@ -53,6 +59,7 @@ jobs:
examples:
name: examples
runs-on: ubuntu-latest
timeout-minutes: 5

steps:
- uses: actions/checkout@v4
Expand All @@ -68,7 +75,7 @@ jobs:
run: |
rye sync --all-features
- env:
- env:
CLOUDFLARE_ACCOUNT_ID: f037e56e89293a057740de681ac9abbe
CLOUDFLARE_EMAIL: [email protected]
CLOUDFLARE_ZONE_ID: 0da42c8d2132a9ddaf714f9e7c92011
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/release-doctor.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
name: Release Doctor

on:
pull_request:
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
release_doctor:
name: release doctor
runs-on: ubuntu-latest
timeout-minutes: 2
if: github.repository == 'cloudflare/cloudflare-python' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next')

steps:
Expand Down

0 comments on commit b35caae

Please sign in to comment.