diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 08a5ba7..c495673 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,6 +1,6 @@ name: tests -on: [push] +on: [push, pull_request] jobs: test: @@ -19,3 +19,12 @@ jobs: node-version: ${{ matrix.node-version }} - run: npm i - run: npm test + + automerge: + needs: test + runs-on: ubuntu-latest + steps: + - uses: fastify/github-action-merge-dependabot@v1.1.1 + if: ${{ github.actor == 'dependabot[bot]' && github.event_name == 'pull_request' && contains(github.head_ref, 'dependabot/github_actions') }} + with: + github-token: ${{secrets.github_token}}