Skip to content

feat: added fastify v5 support #3363

feat: added fastify v5 support

feat: added fastify v5 support #3363

Workflow file for this run

name: Node.js CI
on:
push:
branches: [v*, next]
paths-ignore:
- 'docs/*'
- '*.md'
pull_request:
branches: [v*, next]
paths-ignore:
- 'docs/*'
- '*.md'
jobs:
Build-Modern:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: [20.x, 22.x]
steps:
- name: Checkout branch
uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build projects (with ESM)
run: yarn build
- name: Run library tests (with ESM)
run: yarn test
env:
CI: true
- name: Upload unit-tests coverage to Codecov
uses: codecov/[email protected]
with:
directory: coverage/library
flags: unittests
- name: Upload examples code coverage to Codecov
uses: codecov/[email protected]
with:
directory: coverage/integration
flags: integration
Build-Outdated:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: [12.x, 14.x, 16.x, 18.x]
steps:
- name: Checkout branch
uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- name: Install dependencies
run: yarn install --frozen-lockfile --ignore-engines
- name: Drop not supported
run: |
yarn rimraf examples/fastify-v4
yarn rimraf examples/fastify-v5
- name: Build projects (without ESM)
run: yarn build
- name: Run library tests (without ESM)
run: yarn test
env:
CI: true
- name: Upload unit-tests coverage to Codecov
uses: codecov/[email protected]
with:
directory: coverage/library
flags: unittests
- name: Upload examples code coverage to Codecov
uses: codecov/[email protected]
with:
directory: coverage/integration
flags: integration
Build-Legacy:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: [10.16]
steps:
- name: Checkout branch
uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- name: Install dependencies
run: yarn install --frozen-lock-file --ignore-engines
- name: Drop not supported
run: |
yarn rimraf examples/esm
yarn rimraf examples/fastify-v4
yarn rimraf examples/fastify-v5
- name: Build projects (without ESM)
run: yarn build
- name: Run library tests (without ESM)
run: yarn test
env:
CI: true
- name: Upload unit-tests coverage to Codecov
uses: codecov/[email protected]
with:
directory: coverage/library
flags: unittests
- name: Upload examples code coverage to Codecov
uses: codecov/[email protected]
with:
directory: coverage/integration
flags: integration
Lint-Files:
runs-on: ubuntu-latest
steps:
- name: Checkout branch
uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
cache: 'yarn'
- name: Install dependencies
run: yarn install --frozen-lock-file
- name: Check licenses
run: yarn license-checker
- name: Lint project
run: yarn lint -f @microsoft/eslint-formatter-sarif -o eslint.sarif
- name: Upload linter SARIF file
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: eslint.sarif
CodeQL-Analysis:
runs-on: ubuntu-latest
steps:
- name: Checkout branch
uses: actions/checkout@v3
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: javascript
- name: Setup NodeJS
uses: actions/setup-node@v3
with:
cache: 'yarn'
- name: Install dependencies
run: yarn install --frozen-lock-file
- name: Build projects
run: yarn build
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
automerge:
name: 'Merge Dependabot updates'
if: github.event_name == 'pull_request'
needs: [Build-Modern, Build-Legacy, Lint-Files, CodeQL-Analysis]
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: write
steps:
- uses: fastify/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}