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