Better handling of ifb0 #154
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Linux | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16.x, 18.x, 20.x] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install throttle | |
run: npm ci | |
- name: Install dependencies | |
run: sudo apt-get install -y net-tools | |
- name: Verify lint | |
run: npm run lint | |
- name: Show interfaces | |
run: sudo ip r | |
- name: Test cable | |
run: bin/index.js cable && bin/index.js stop | |
- name: Test configuration | |
run: bin/index.js throttle --up 330 --down 780 --rtt 200 && bin/index.js stop | |
- name: Test localhost | |
run: bin/index.js --rtt 200 --localhost && bin/index.js stop --localhost | |
- name: Test config file | |
run: bin/index.js --config test/config.json && bin/index.js stop | |
- name: Test packet loss | |
run: bin/index.js throttle --up 330 --down 780 --rtt 200 --packetLoss 10 && bin/index.js stop | |
- name: Test packet loss and profile | |
run: bin/index.js 3g --packetLoss 10 && bin/index.js stop |