Skip to content

Fix CI

Fix CI #7

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-version }} hapi@${{ matrix.hapi }}
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
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