5.0.1 #155
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: OSX | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '20.x' | |
- name: Install dependencies | |
run: npm ci | |
- name: Test 3g | |
run: bin/index.js 3g && 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 throttle --rtt 200 --localhost && bin/index.js stop --localhost | |
- name: Test profile and packet loss | |
run: bin/index.js 3g --packetLoss 5 && bin/index.js stop | |
- name: Test configuration and packet loss | |
run: bin/index.js throttle --up 330 --down 780 --rtt 200 --packetLoss 5 && bin/index.js stop |