From 35a20a3cf34235b93373ee6bcef99fbdf0c2199c Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Mon, 30 May 2022 13:06:50 +0100 Subject: [PATCH] ci: migrate to reusable workflow (#115) --- .github/workflows/ci.yml | 38 +------------------------------------- package.json | 1 + 2 files changed, 2 insertions(+), 37 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 849e201..32b3d16 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,50 +2,14 @@ name: CI on: push: - branches: - - master paths-ignore: - 'docs/**' - '*.md' pull_request: - branches: - - master paths-ignore: - 'docs/**' - '*.md' jobs: test: - runs-on: ${{ matrix.os }} - - strategy: - matrix: - node-version: [14.x, 16.x, 18.x] - os: [macos-latest, ubuntu-latest, windows-latest] - - steps: - - uses: actions/checkout@v3 - - - name: Use Node.js - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node-version }} - - - name: Install Dependencies - run: | - npm install --ignore-scripts - - - name: Run Tests With Tap - run: | - npm run test:tap - - automerge: - needs: test - runs-on: ubuntu-latest - permissions: - pull-requests: write - contents: write - steps: - - uses: fastify/github-action-merge-dependabot@v3 - with: - github-token: ${{ secrets.GITHUB_TOKEN }} + uses: fastify/workflows/.github/workflows/plugins-ci.yml@v3 diff --git a/package.json b/package.json index 1fb66f2..24fd376 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ "main": "index.js", "types": "index.d.ts", "scripts": { + "test": "npm run test:tap", "test:coverage": "tap -J test-tap/*.test.js --cov --coverage-report=lcovonly", "test:jest": "jest --config=jest.config.json", "test:tap": "tap -J test-tap/*.test.js",