Skip to content

Commit 3a577d7

Browse files
committed
[NAE-2116] Frontend remote configuration
- testing pipeline
1 parent 4bc2df5 commit 3a577d7

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

.github/workflows/pr-build.yml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
jobs:
66
matrix-test:
77
name: Matrix Test
8-
runs-on: ubuntu-22.04
8+
runs-on: ubuntu-24.04
99
strategy:
1010
matrix:
1111
node-version: [ 20, 22, 24 ]
@@ -17,13 +17,24 @@ jobs:
1717
name: Full Test on Node.js version ${{ matrix.node-version }}
1818
with:
1919
node-version: ${{ matrix.node-version }}
20-
- name: Install dependencies with status output
20+
- name: Install dependencies with timeout and diagnostics
2121
run: |
2222
npm install --legacy-peer-deps --verbose &
2323
pid=$!
24-
while kill -0 $pid 2> /dev/null; do
25-
echo "Still installing..."; sleep 60
24+
for i in {1..5}; do
25+
if ! kill -0 $pid 2>/dev/null; then
26+
break
27+
fi
28+
echo "Still installing... ($i min)"
29+
sleep 60
2630
done
31+
if kill -0 $pid 2>/dev/null; then
32+
echo "npm install is stuck, killing process..."
33+
ps aux
34+
pstree -p $pid || true
35+
kill -9 $pid
36+
exit 1
37+
fi
2738
wait $pid
2839
exit_code=$?
2940
if [ $exit_code -eq 0 ]; then
@@ -32,6 +43,11 @@ jobs:
3243
echo "npm install FAILED with exit code $exit_code"
3344
fi
3445
exit $exit_code
46+
- name: Debug
47+
run: |
48+
ps aux
49+
pstree -p
50+
lsof -p $pid || true
3551
- name: Build & test components-core
3652
run: |
3753
npm run ncc:build

0 commit comments

Comments
 (0)