name: tests on: [push, pull_request] jobs: test: runs-on: ${{ matrix.os }} strategy: matrix: os: [ubuntu-latest] node: [15] steps: - uses: actions/checkout@v2.3.5 - name: Use Node.js ${{ matrix.node }} uses: actions/setup-node@v2.4.1 with: node-version: ${{ matrix.node }} - run: npm i - run: npm test automerge: needs: test runs-on: ubuntu-latest steps: - uses: fastify/github-action-merge-dependabot@v2.5.0 if: ${{ github.actor == 'dependabot[bot]' && github.event_name == 'pull_request' && contains(github.head_ref, 'dependabot/github_actions') }} with: github-token: ${{secrets.github_token}}