Add Fastify support #1
Workflow file for this run
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: Fastify adapter tests | |
on: | |
push: | |
branches: [main] | |
pull_request: {} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
node-version: [18.x, 20.x] | |
fastify-version: [3.x, 4.x] | |
defaults: | |
run: | |
working-directory: fastify | |
steps: | |
- 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: Install Fastify ${{ matrix.fastify-version }} | |
run: npm install fastify@${{ matrix.fastify-version }} | |
- name: Run tests | |
run: npm test |