From cde2f49c8e22908cc2e1a55bfb29cac72db6aa2b Mon Sep 17 00:00:00 2001 From: James Sumners <321201+jsumners@users.noreply.github.com> Date: Wed, 19 Jun 2024 15:46:18 -0400 Subject: [PATCH] Merge `next` into `main` (#9) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update for Fastify v5 (#7) * update to v5 * add pre-commit * workflows: update and pin LTS versions (#8) * use library CI * start with 18 * update ci --------- Co-authored-by: Gürgün Dayıoğlu --- .github/workflows/ci.yml | 24 ++++++++++++++++++++++++ .github/workflows/test.yml | 32 -------------------------------- package.json | 5 +++-- 3 files changed, 27 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..f8e414b --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,24 @@ +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.2.0 + with: + license-check: true + lint: true + node-versions: '["18", "20"]' 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": [