Skip to content

chore(deps): update all dependencies (#307) #243

chore(deps): update all dependencies (#307)

chore(deps): update all dependencies (#307) #243

Workflow file for this run

name: Release
on:
push:
branches:
- master
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
node: # https://nodejs.org/en/about/releases/
- '*' # Current
- '18' # Active LTS
fail-fast: false
steps:
- name: Setup Node
uses: actions/setup-node@v2-beta
with:
check-latest: true
node-version: ${{ matrix.node }}
- name: Checkout
uses: actions/checkout@v4
- uses: bahmutov/npm-install@v1
- name: Allow sudoless tcpdump (linux only)
if: ${{ success() && startsWith(matrix.os, 'ubuntu-') }}
run: |
sudo groupadd pcap
sudo usermod -a -G pcap $USER
sudo chgrp pcap /usr/bin/tcpdump
sudo setcap cap_net_raw,cap_net_admin=eip /usr/bin/tcpdump
- name: Allow sudoless tcpdump (macos only)
if: ${{ success() && startsWith(matrix.os, 'macos-') }}
run: |
sudo chmod o+r /dev/bpf*
- name: Test (full)
run: npm run test
release:
runs-on: ubuntu-latest
needs:
- test
if: ${{ success() && github.event_name == 'push' && github.ref == 'refs/heads/master' && github.repository == 'hertzg/node-net-keepalive' }}
steps:
- name: Setup Node
uses: actions/setup-node@v2-beta
- name: Checkout
uses: actions/checkout@v4
- uses: bahmutov/npm-install@v1
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm run release