From 38889369b43e6dc2ded8ca07367bb2ee1b74215f Mon Sep 17 00:00:00 2001 From: Bret <166301+bcomnes@users.noreply.github.com> Date: Mon, 1 Mar 2021 16:43:57 -0700 Subject: [PATCH] Update test.yml --- .github/workflows/test.yml | 32 ++++++++++++++++++-------------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b6a0977..be1c361 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,26 +1,30 @@ -name: Tests +name: tests -on: [push] +on: [pull_request, push] jobs: - build: - - runs-on: ubuntu-latest + test: + runs-on: ${{ matrix.os }} strategy: matrix: - node-version: [12.x] + os: [ubuntu-latest] + node: [14] steps: - uses: actions/checkout@v2.3.4 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v2.1.3 + uses: actions/setup-node@v2.1.4 with: node-version: ${{ matrix.node-version }} - - name: npm install, build, and test - run: | - npm i - npm test - env: - CI: true - + - 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}}