Skip to content

Fix adding options.host to defaultHosts list #66

Fix adding options.host to defaultHosts list

Fix adding options.host to defaultHosts list #66

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
test:
strategy:
fail-fast: false
matrix:
node-version: [0.12.x, 4.x, 6.x, 8.x, 10.x, 12.x, 14.x, 16.x, 18.x]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Set core.autocrlf on windows
if: matrix.os == 'windows-latest'
run: git config --global core.autocrlf true
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm install
- name: Set debug on windows
if: matrix.os == 'windows-latest'
run: set DEBUG=*
- run: npm test
test-types:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: 16.x
cache: 'npm'
- name: Install dependencies
run: npm install
- name: Install typescript
run: npm install --save-dev typescript
- run: node_modules/.bin/tsc --strict lib/portfinder.d.ts