From 8c5ae38d108e9af3218d4409d969b587baeed3f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCrg=C3=BCn=20Day=C4=B1o=C4=9Flu?= Date: Fri, 19 Apr 2024 11:48:44 +0200 Subject: [PATCH 1/2] Update for Fastify v5 (#7) * update to v5 * add pre-commit --- .github/workflows/ci.yml | 23 +++++++++++++++++++++++ .github/workflows/test.yml | 32 -------------------------------- package.json | 5 +++-- 3 files changed, 26 insertions(+), 34 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..5395d92 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,23 @@ +name: CI + +on: + push: + branches: + - main + - master + - next + - 'v*' + paths-ignore: + - 'docs/**' + - '*.md' + pull_request: + paths-ignore: + - 'docs/**' + - '*.md' + +jobs: + test: + uses: fastify/workflows/.github/workflows/plugins-ci.yml@v4.1.0 + with: + license-check: true + lint: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index fce3203..0000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: Run Tests - -on: [push, pull_request] - -permissions: - contents: read - -jobs: - test: - name: Test - runs-on: ${{ matrix.os }} - - strategy: - matrix: - node-version: [18.x, 20.x] - os: [ubuntu-latest, windows-latest, macOS-latest] - - steps: - - uses: actions/checkout@v3 - - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node-version }} - - - name: Install - run: | - npm install - - - name: Test - run: | - npm run test diff --git a/package.json b/package.json index 83165f9..bb1a688 100644 --- a/package.json +++ b/package.json @@ -34,9 +34,10 @@ "fast-deep-equal": "^3.1.3" }, "devDependencies": { - "c8": "^8.0.1", + "@fastify/pre-commit": "^2.1.0", + "c8": "^9.1.0", "standard": "^17.1.0", - "tsd": "^0.29.0" + "tsd": "^0.31.0" }, "standard": { "ignore": [ From e5e2529b6f0ead8f40e5c708c1c9453b0433fd67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCrg=C3=BCn=20Day=C4=B1o=C4=9Flu?= Date: Sat, 27 Apr 2024 20:36:07 +0200 Subject: [PATCH 2/2] workflows: update and pin LTS versions (#8) * use library CI * start with 18 * update ci --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5395d92..f8e414b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,7 +17,8 @@ on: jobs: test: - uses: fastify/workflows/.github/workflows/plugins-ci.yml@v4.1.0 + uses: fastify/workflows/.github/workflows/plugins-ci.yml@v4.2.0 with: license-check: true lint: true + node-versions: '["18", "20"]'