Skip to content

Commit

Permalink
* try setcap
Browse files Browse the repository at this point in the history
  • Loading branch information
Apollon77 committed Jan 26, 2021
1 parent f2aa5ec commit 7a629e2
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/test-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
strategy:
matrix:
node-version: [10.x, 12.x, 14.x]
os: [ubuntu-latest]
os: [ubuntu-latest, windows-latest, macos-latest]

steps:
- uses: actions/[email protected]
Expand All @@ -69,10 +69,11 @@ jobs:
- name: Install Dependencies
run: npm install

- name: Fix permissions
run: sudo setcap 'cap_net_bind_service,cap_net_raw+eip' $(eval readlink -f `which node`)
- name: Run local tests
run: npm test
- name: Local tests
if: startsWith(runner.OS, 'linux')
run: |
sudo setcap 'cap_net_bind_service,cap_net_raw+eip' $(eval readlink -f `which node`)
npm test
# - name: Run unit tests
# run: npm run test:unit
# - name: Run integration tests # (linux/osx)
Expand Down

0 comments on commit 7a629e2

Please sign in to comment.