Skip to content

Commit

Permalink
chore: add automerge (#744)
Browse files Browse the repository at this point in the history
  • Loading branch information
metcoder95 authored Feb 16, 2025
1 parent 73c92c6 commit 22f2c92
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ jobs:
tests:
permissions:
contents: read
needs: [lint]
name: Tests
strategy:
fail-fast: false
Expand All @@ -52,9 +51,24 @@ jobs:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache-dependency-path: package.json

- name: Install Dependencies
run: npm install

- name: Run Tests
run: npm run test:ci

automerge:
if: >
github.event_name == 'pull_request' && github.event.pull_request.user.login == 'dependabot[bot]'
needs:
- tests
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Merge Dependabot PR
uses: fastify/github-action-merge-dependabot@c3bde0759d4f24db16f7b250b2122bc2df57e817 # v3.11.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 22f2c92

Please sign in to comment.