Skip to content

Commit

Permalink
Updates for fastify v5 (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
nrayburn-tech authored Nov 1, 2023
1 parent d750030 commit 29329a1
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 32 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/plugins-benchmark-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@ jobs:
permissions:
contents: read
outputs:
PR-BENCH-16: ${{ steps.benchmark-pr.outputs.BENCH_RESULT_16 }}
PR-BENCH-18: ${{ steps.benchmark-pr.outputs.BENCH_RESULT_18 }}
PR-BENCH-20: ${{ steps.benchmark-pr.outputs.BENCH_RESULT_20 }}
DEFAULT-BENCH-16: ${{ steps.benchmark-default.outputs.BENCH_RESULT_16 }}
PR-BENCH-21: ${{ steps.benchmark-pr.outputs.BENCH_RESULT_21 }}
DEFAULT-BENCH-18: ${{ steps.benchmark-default.outputs.BENCH_RESULT_18 }}
DEFAULT-BENCH-20: ${{ steps.benchmark-default.outputs.BENCH_RESULT_20 }}
DEFAULT-BENCH-21: ${{ steps.benchmark-default.outputs.BENCH_RESULT_21 }}

strategy:
matrix:
node-version: [16, 18, 20]
node-version: [18, 20, 21]
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -65,7 +65,7 @@ jobs:
echo 'EOF' >> $GITHUB_OUTPUT
output-benchmark:
needs:
needs:
- benchmark
runs-on: ubuntu-latest
permissions:
Expand All @@ -76,36 +76,36 @@ jobs:
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
message: |
**Node**: 16
**Node**: 18
**${{github.event.pull_request.head.ref}}**:
```
${{ needs.benchmark.outputs.PR-BENCH-16 }}
${{ needs.benchmark.outputs.PR-BENCH-18 }}
```
**${{ github.event.repository.default_branch }}**:
```
${{ needs.benchmark.outputs.DEFAULT-BENCH-16 }}
${{ needs.benchmark.outputs.DEFAULT-BENCH-18 }}
```
---
**Node**: 18
**Node**: 20
**${{github.event.pull_request.head.ref}}**:
```
${{ needs.benchmark.outputs.PR-BENCH-18 }}
${{ needs.benchmark.outputs.PR-BENCH-20 }}
```
**${{ github.event.repository.default_branch }}**:
```
${{ needs.benchmark.outputs.DEFAULT-BENCH-18 }}
${{ needs.benchmark.outputs.DEFAULT-BENCH-20 }}
```
---
**Node**: 20
**Node**: 21
**${{github.event.pull_request.head.ref}}**:
```
${{ needs.benchmark.outputs.PR-BENCH-20 }}
${{ needs.benchmark.outputs.PR-BENCH-21 }}
```
**${{ github.event.repository.default_branch }}**:
```
${{ needs.benchmark.outputs.DEFAULT-BENCH-20 }}
${{ needs.benchmark.outputs.DEFAULT-BENCH-21 }}
```
2 changes: 1 addition & 1 deletion .github/workflows/plugins-ci-mongo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ jobs:
contents: read
strategy:
matrix:
node-version: [14, 16, 18, 20, 21]
node-version: [18, 20, 21]
os: [ubuntu-latest]
db: [5]

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/plugins-ci-mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ jobs:
contents: read
strategy:
matrix:
node-version: [14, 16, 18, 20, 21]
node-version: [18, 20, 21]
os: [ubuntu-latest]
db: ['mysql:8.0']

Expand Down
9 changes: 2 additions & 7 deletions .github/workflows/plugins-ci-package-manager.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,9 @@ jobs:
contents: read
strategy:
matrix:
node-version: [16, 18, 20, 21]
node-version: [18, 20, 21]
os: [ubuntu-latest]
pnpm-version: [8]
# pnpm@8 does not support Node.js 14 so include it separately
include:
- node-version: 14
os: ubuntu-latest
pnpm-version: 7

steps:
- name: Check out repo
Expand Down Expand Up @@ -49,7 +44,7 @@ jobs:
contents: read
strategy:
matrix:
node-version: [14, 16, 18, 20]
node-version: [18, 20, 21]
os: [ubuntu-latest]
steps:
- name: Check out repo
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/plugins-ci-postgres.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ jobs:
contents: read
strategy:
matrix:
node-version: [14, 16, 18, 20, 21]
node-version: [18, 20, 21]
os: [ubuntu-latest]
db: ['postgres:11-alpine']

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/plugins-ci-redis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14, 16, 18, 20, 21]
node-version: [18, 20, 21]
db: [5, 6, 7]
services:
redis:
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/plugins-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,8 @@ jobs:
contents: read
strategy:
matrix:
node-version: [14, 16, 18, 20, 21]
node-version: [18, 20, 21]
os: [macos-latest, ubuntu-latest, windows-latest]
exclude:
- os: windows-latest
node-version: 14
steps:
- name: Check out repo
uses: actions/checkout@v4
Expand Down Expand Up @@ -166,7 +163,7 @@ jobs:
(needs.fastify-dependency-integration.result == 'success' || needs.fastify-dependency-integration.result == 'skipped') &&
github.event_name == 'pull_request' &&
github.event.pull_request.user.login == 'dependabot[bot]'
needs:
needs:
- test
- fastify-dependency-integration
permissions:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ on:

jobs:
ci:
uses: fastify/workflows/.github/workflows/plugins-ci.yml@v3
uses: fastify/workflows/.github/workflows/plugins-ci.yml@v4
```
Included in this repo is a [basic workflow](.github/workflows/plugins-ci.yml) for use across the majority of plugins, as well as variants with service containers.
Expand Down Expand Up @@ -55,7 +55,7 @@ jobs:
permissions:
contents: write
pull-requests: write
uses: fastify/workflows/.github/workflows/plugins-ci.yml@v3
uses: fastify/workflows/.github/workflows/plugins-ci.yml@v4
with:
lint: true
```
Expand Down

0 comments on commit 29329a1

Please sign in to comment.