Skip to content

Commit

Permalink
Update test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
bcomnes authored Mar 1, 2021
1 parent 949cac5 commit 3888936
Showing 1 changed file with 18 additions and 14 deletions.
32 changes: 18 additions & 14 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -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}}

0 comments on commit 3888936

Please sign in to comment.