Skip to content

Commit

Permalink
ci: introduce new manual version test workflow #93
Browse files Browse the repository at this point in the history
  • Loading branch information
hertzg authored Oct 19, 2020
1 parent 7af77d8 commit d55011f
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/node-version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: node-version

on:
workflow_dispatch:
inputs:
node:
description: 'Node version'
default: '*'
os:
description: 'Runner OS'
default: 'ubuntu-latest'

jobs:
test-integration:
runs-on: ${{ github.event.inputs.os }}

steps:
- name: Setup sudoless tcpdump (linux only)
if: ${{ success() && startsWith(github.event.inputs.os, 'ubuntu-') }}
run: |
sudo groupadd pcap
sudo usermod -a -G pcap $USER
sudo chgrp pcap /usr/sbin/tcpdump
sudo setcap cap_net_raw,cap_net_admin=eip /usr/sbin/tcpdump
sudo ln -s /usr/sbin/tcpdump /usr/bin/tcpdump
- name: Setup sudoless tcpdump (macos only)
if: ${{ success() && startsWith(github.event.inputs.os, 'macos-') }}
run: |
sudo chown $(whoami):admin /dev/bpf*
- name: Setup Node
uses: actions/setup-node@v2-beta
with:
node-version: ${{ github.event.inputs.node }}

- name: Checkout
uses: actions/checkout@v2

- name: Install dependencies (full)
run: |
npm i --prefer-offline --no-audit
npm list --depth=0 || true
- name: Test (integration)
run: npm run test:integration

0 comments on commit d55011f

Please sign in to comment.