1111 runs-on : ubuntu-latest
1212 strategy :
1313 matrix :
14- node-version : [16 .x, 18 .x, 20 .x]
14+ node-version : [20 .x, 22 .x, 24 .x]
1515 steps :
1616 - uses : actions/checkout@v2
1717 - name : Use Node.js ${{ matrix.node-version }}
@@ -25,16 +25,18 @@ jobs:
2525 - name : Verify lint
2626 run : npm run lint
2727 - 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'
2931 - 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
3133 - 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
3335 - 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
3537 - 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
3739 - 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
3941 - 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