Skip to content

Require node>=18 and hapi>=21 #6

Require node>=18 and hapi>=21

Require node>=18 and hapi>=21 #6

Workflow file for this run

name: Node.js CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test:
strategy:
fail-fast: false
matrix:
node-version: [18, 20, latest]
hapi: [21]
runs-on: ubuntu-latest
name: Test node@${{ matrix.node }} hapi@${{ matrix.hapi }}
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
check-latest: ${{ matrix.node-version == 'latest' }}
- run: npm ci
- run: npm install @hapi/hapi@${{ matrix.hapi }}
- run: npm run build --if-present
- run: npm test