From 2e273dd268670b774cf3431b927605df445c005f Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Tue, 31 May 2022 12:59:10 +0100 Subject: [PATCH 1/2] ci!: migrate to fastify reusable workflow --- .github/workflows/ci.yml | 62 ++++++---------------------------------- 1 file changed, 8 insertions(+), 54 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 45a5383..32b3d16 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,61 +1,15 @@ -name: Continuous Integration +name: CI + on: push: paths-ignore: - - "docs/**" - - "*.md" + - 'docs/**' + - '*.md' pull_request: paths-ignore: - - "docs/**" - - "*.md" - -env: - CI: true - COVERALLS: 0 + - 'docs/**' + - '*.md' jobs: - build: - runs-on: ${{ matrix.os }} - strategy: - matrix: - # Maintenance and active LTS - node-version: [10, 12, 14, 16] - os: [ubuntu-latest, windows-latest, macOS-latest] - name: Node ${{ matrix.node-version }} - - steps: - - uses: actions/checkout@v2 - - - name: Use Node.js - id: setup_node - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node-version }} - - - name: Install Dependencies - id: install - run: npm install --ignore-scripts - - - name: Check licenses - id: license_check - run: | - npm run license-checker --if-present - # Unit and lint tests - - name: Tests - id: test - run: npm run test - - - name: Typescript - id: typescript_test - run: npm run typescript --if-present - - automerge: - needs: build - runs-on: ubuntu-latest - permissions: - pull-requests: write - contents: write - steps: - - uses: fastify/github-action-merge-dependabot@v3 - with: - github-token: ${{ secrets.GITHUB_TOKEN }} + test: + uses: fastify/workflows/.github/workflows/plugins-ci.yml@v3 From a24e6b5aa4b19cbcbac280dda1a64a76f7f98faa Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Tue, 31 May 2022 13:01:52 +0100 Subject: [PATCH 2/2] chore(package): replace deprecated `git://` protocol --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 72a5cb7..c485d34 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,7 @@ "which": "^2.0.2" }, "devDependencies": { - "pre-commit": "git://github.com/fastify/pre-commit.git", + "pre-commit": "git+https://git@github.com/fastify/pre-commit.git", "proxyquire": "^2.1.3", "standard": "^16.0.3", "tap": "^16.0.0"