Skip to content

Commit 642300b

Browse files
authored
Modify CI workflow for concurrency and port management
Updated concurrency group naming and added a step to ensure Metro port is free before starting the package manager.
1 parent a4072e2 commit 642300b

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
workflow_dispatch:
1313

1414
concurrency:
15-
group: ${{ github.ref }}
15+
group: ci-${{ github.event.pull_request.number || github.ref }}
1616
cancel-in-progress: true
1717

1818
jobs:
@@ -37,6 +37,10 @@ jobs:
3737
working-directory: apps/example/ios
3838
run: pod install
3939

40+
- name: Ensure Metro port is free
41+
run: |
42+
lsof -ti :8081 | xargs -r kill -9 || true
43+
4044
- name: Start Package Manager
4145
working-directory: apps/example
4246
run: E2E=true yarn start &

0 commit comments

Comments
 (0)