11
11
runs-on : ubuntu-latest
12
12
strategy :
13
13
matrix :
14
- node-version : [16 .x, 18 .x, 20 .x]
14
+ node-version : [20 .x, 22 .x, 24 .x]
15
15
steps :
16
16
- uses : actions/checkout@v2
17
17
- name : Use Node.js ${{ matrix.node-version }}
@@ -25,16 +25,18 @@ jobs:
25
25
- name : Verify lint
26
26
run : npm run lint
27
27
- name : Show interfaces
28
- run : sudo ip r
28
+ run : sudo ip route show
29
+ - name : Get default interface
30
+ run : sudo ip route | awk '/default/ {print $5; exit}' | tr -d '\n'
29
31
- name : Test cable
30
- run : bin/index.js cable && bin/index.js stop
32
+ run : LOG_THROTTLE=true bin/index.js cable && bin/index.js stop
31
33
- name : Test configuration
32
- run : bin/index.js throttle --up 330 --down 780 --rtt 200 && bin/index.js stop
34
+ run : LOG_THROTTLE=true bin/index.js throttle --up 330 --down 780 --rtt 200 && bin/index.js stop
33
35
- name : Test localhost
34
- run : bin/index.js --rtt 200 --localhost && bin/index.js stop --localhost
36
+ run : LOG_THROTTLE=true bin/index.js --rtt 200 --localhost && bin/index.js stop --localhost
35
37
- name : Test config file
36
- run : bin/index.js --config test/config.json && bin/index.js stop
38
+ run : LOG_THROTTLE=true bin/index.js --config test/config.json && bin/index.js stop
37
39
- name : Test packet loss
38
- run : bin/index.js throttle --up 330 --down 780 --rtt 200 --packetLoss 10 && bin/index.js stop
40
+ run : LOG_THROTTLE=true bin/index.js throttle --up 330 --down 780 --rtt 200 --packetLoss 10 && bin/index.js stop
39
41
- name : Test packet loss and profile
40
- run : bin/index.js 3g --packetLoss 10 && bin/index.js stop
42
+ run : LOG_THROTTLE=true bin/index.js 3g --packetLoss 10 && bin/index.js stop
0 commit comments