Merge pull request #98 from Marsup/chore/break-deprecated-versions #226
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu] | |
node: ['latest', '20', '18'] | |
hapi: ['21', '20'] | |
include: | |
- os: ubuntu | |
node: 'latest' | |
hapi: 'latest' | |
services: | |
mongodb: | |
image: mongo:6 | |
ports: | |
- 27017:27017 | |
runs-on: ${{ matrix.os }}-latest | |
name: ${{ matrix.os }} node@${{ matrix.node }} hapi@${{ matrix.hapi }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node }} | |
check-latest: ${{ matrix.node == '*' }} | |
- name: install | |
run: npm install | |
- name: install hapi | |
run: npm install @hapi/hapi@${{ matrix.hapi }} | |
- name: test | |
run: npm test |