Skip to content

Commit 724595d

Browse files
committed
Add timeout and fix cleanup in import test workflow
- Add 10-minute timeout to prevent hanging jobs - Replace hanging 'npm run wp-env logs' with 'docker ps' in cleanup - Improves CI reliability and debugging capability
1 parent 0b769b2 commit 724595d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/import-test.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
jobs:
1010
test-import:
1111
runs-on: ubuntu-latest
12+
timeout-minutes: 10
1213

1314
env:
1415
WP_ENV_PHP_VERSION: '8.2'
@@ -116,5 +117,5 @@ jobs:
116117
- name: Cleanup on failure
117118
if: failure()
118119
run: |
119-
echo "Import test failed. Dumping logs..."
120-
npm run wp-env logs
120+
echo "Import test failed. Checking environment status..."
121+
docker ps

0 commit comments

Comments
 (0)