Skip to content

Commit 0ceed55

Browse files
grdsdevclaude
andcommitted
ci: improve workflow reliability and performance (Phase 1)
- Replace deprecated jakejarvis/wait-action with native sleep command - Add concurrency control to cancel outdated workflow runs - Add timeout-minutes to all jobs to prevent infinite hangs - Standardize test concurrency flag across all package workflows These changes improve CI reliability and reduce resource usage by preventing stuck jobs and canceling redundant runs on new commits. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 1d142c1 commit 0ceed55

13 files changed

+64
-13
lines changed

.github/workflows/coverage.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,18 @@ on:
66
- main
77
pull_request:
88

9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
913
permissions:
1014
contents: read
1115

1216
jobs:
1317
coverage:
1418
name: Generate Combined Coverage
1519
runs-on: ubuntu-latest
20+
timeout-minutes: 30
1621

1722
steps:
1823
- uses: actions/checkout@v4

.github/workflows/functions_client.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,17 @@ on:
1515
- '.github/workflows/functions_client.yml'
1616
- 'packages/yet_another_json_isolate/**'
1717

18+
concurrency:
19+
group: ${{ github.workflow }}-${{ github.ref }}
20+
cancel-in-progress: true
21+
1822
permissions:
1923
contents: read
2024

2125
jobs:
2226
test:
2327
name: Test SDK ${{ matrix.sdk }}
28+
timeout-minutes: 20
2429

2530
strategy:
2631
fail-fast: false

.github/workflows/gotrue.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,17 @@ on:
1313
- 'packages/gotrue/**'
1414
- '.github/workflows/gotrue.yml'
1515

16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.ref }}
18+
cancel-in-progress: true
19+
1620
permissions:
1721
contents: read
1822

1923
jobs:
2024
test:
2125
name: Test SDK ${{ matrix.sdk }}
26+
timeout-minutes: 20
2227
strategy:
2328
fail-fast: false
2429
matrix:
@@ -64,10 +69,8 @@ jobs:
6469
docker compose down
6570
docker compose up -d
6671
67-
- name: Sleep for 5 seconds
68-
uses: jakejarvis/wait-action@master
69-
with:
70-
time: '5s'
72+
- name: Wait for services to be ready
73+
run: sleep 5
7174

7275
- name: Run tests
7376
run: dart test --concurrency=1

.github/workflows/postgrest.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,17 @@ on:
1515
- '.github/workflows/postgrest.yml'
1616
- 'packages/yet_another_json_isolate/**'
1717

18+
concurrency:
19+
group: ${{ github.workflow }}-${{ github.ref }}
20+
cancel-in-progress: true
21+
1822
permissions:
1923
contents: read
2024

2125
jobs:
2226
test:
2327
name: Test SDK ${{ matrix.sdk }}
28+
timeout-minutes: 20
2429
strategy:
2530
fail-fast: false
2631
matrix:
@@ -66,10 +71,8 @@ jobs:
6671
docker compose down
6772
docker compose up -d
6873
69-
- name: Sleep for 5 seconds
70-
uses: jakejarvis/wait-action@master
71-
with:
72-
time: '5s'
74+
- name: Wait for services to be ready
75+
run: sleep 5
7376

7477
- name: Run tests
7578
run: dart test --concurrency=1

.github/workflows/realtime_client.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,17 @@ on:
1313
- 'packages/realtime_client/**'
1414
- '.github/workflows/realtime_client.yml'
1515

16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.ref }}
18+
cancel-in-progress: true
19+
1620
permissions:
1721
contents: read
1822

1923
jobs:
2024
test:
2125
name: Test SDK ${{ matrix.sdk }}
26+
timeout-minutes: 20
2227
strategy:
2328
fail-fast: false
2429
matrix:

.github/workflows/release-prepare.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ permissions:
2121
jobs:
2222
prepare-release:
2323
runs-on: ubuntu-latest
24+
timeout-minutes: 15
2425
steps:
2526
- name: Checkout
2627
uses: actions/checkout@v4

.github/workflows/release-publish.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ permissions:
1010
jobs:
1111
publish-packages:
1212
runs-on: ubuntu-latest
13+
timeout-minutes: 20
1314
steps:
1415
- name: Generate token
1516
id: app-token

.github/workflows/release-tag.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
branches:
66
- main
77

8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: false
11+
812
permissions:
913
contents: write
1014
actions: write
@@ -13,6 +17,7 @@ jobs:
1317
create-tags:
1418
if: ${{ contains(github.event.head_commit.message, 'chore(release):') }}
1519
runs-on: ubuntu-latest
20+
timeout-minutes: 15
1621
steps:
1722
- name: Generate token
1823
id: app-token

.github/workflows/storage_client.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,17 @@ on:
1212
- 'packages/storage_client/**'
1313
- '.github/workflows/storage_client.yml'
1414

15+
concurrency:
16+
group: ${{ github.workflow }}-${{ github.ref }}
17+
cancel-in-progress: true
18+
1519
permissions:
1620
contents: read
1721

1822
jobs:
1923
test:
2024
name: Test SDK ${{ matrix.sdk }}
25+
timeout-minutes: 20
2126
strategy:
2227
fail-fast: false
2328
matrix:
@@ -63,10 +68,8 @@ jobs:
6368
docker compose down
6469
docker compose up -d
6570
66-
- name: Sleep for 5 seconds
67-
uses: jakejarvis/wait-action@master
68-
with:
69-
time: '5s'
71+
- name: Wait for services to be ready
72+
run: sleep 5
7073

7174
- name: Run tests
72-
run: dart test
75+
run: dart test --concurrency=1

.github/workflows/supabase.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,17 @@ on:
2323
- 'packages/realtime_client/**'
2424
- 'packages/storage_client/**'
2525

26+
concurrency:
27+
group: ${{ github.workflow }}-${{ github.ref }}
28+
cancel-in-progress: true
29+
2630
permissions:
2731
contents: read
2832

2933
jobs:
3034
test:
3135
name: Test SDK ${{ matrix.sdk }}
36+
timeout-minutes: 20
3237
strategy:
3338
fail-fast: false
3439
matrix:

0 commit comments

Comments
 (0)