File tree Expand file tree Collapse file tree 1 file changed +20
-4
lines changed Expand file tree Collapse file tree 1 file changed +20
-4
lines changed Original file line number Diff line number Diff line change 5
5
jobs :
6
6
matrix-test :
7
7
name : Matrix Test
8
- runs-on : ubuntu-22 .04
8
+ runs-on : ubuntu-24 .04
9
9
strategy :
10
10
matrix :
11
11
node-version : [ 20, 22, 24 ]
@@ -17,13 +17,24 @@ jobs:
17
17
name : Full Test on Node.js version ${{ matrix.node-version }}
18
18
with :
19
19
node-version : ${{ matrix.node-version }}
20
- - name : Install dependencies with status output
20
+ - name : Install dependencies with timeout and diagnostics
21
21
run : |
22
22
npm install --legacy-peer-deps --verbose &
23
23
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
26
30
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
27
38
wait $pid
28
39
exit_code=$?
29
40
if [ $exit_code -eq 0 ]; then
32
43
echo "npm install FAILED with exit code $exit_code"
33
44
fi
34
45
exit $exit_code
46
+ - name : Debug
47
+ run : |
48
+ ps aux
49
+ pstree -p
50
+ lsof -p $pid || true
35
51
- name : Build & test components-core
36
52
run : |
37
53
npm run ncc:build
You can’t perform that action at this time.
0 commit comments