diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 28c8915..0835113 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,9 +16,36 @@ on: - '*.md' jobs: + test-regression-check-node10: + name: Test compatibility with Node.js 10 + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + persist-credentials: false + + - uses: actions/setup-node@v4 + with: + node-version: '10' + cache: 'npm' + cache-dependency-path: package.json + check-latest: true + + - name: Install + run: | + npm install --ignore-scripts + + - name: Run tests + run: | + npm run test:unit + env: + NODE_OPTIONS: no-network-family-autoselection + test: + needs: + - test-regression-node10 uses: fastify/workflows/.github/workflows/plugins-ci.yml@v5 with: license-check: true lint: true - node-versions: '["10", "12", "14", "16", "18", "20", "22"]' + node-versions: '["16", "18", "20", "22"]'