Skip to content

test: Use mock API when running tests (#95) #27

test: Use mock API when running tests (#95)

test: Use mock API when running tests (#95) #27

Workflow file for this run

name: Test
on:
push:
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
version: [14, 16, 18, 20, 22, "latest"]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.version }}
- run: npm ci
- run: npm test
- run: npm run build
- run: cd test-app && npm install && node index.js
env:
IPINFO_TOKEN: ${{ secrets.IPINFO_TOKEN }}