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": [