Merge pull request #13 from actions/ci-on-pr

Update workflow to build and test pull requests
This commit is contained in:
Timothy Clem
2020-03-30 08:46:52 -07:00
committed by GitHub

View File

@@ -1,5 +1,13 @@
name: Main workflow
on: [push]
name: build-test
on:
push:
branches:
- master
paths-ignore:
- '**.md'
pull_request:
paths-ignore:
- '**.md'
jobs:
run:
name: Run
@@ -9,12 +17,12 @@ jobs:
operating-system: [ubuntu-latest, windows-latest]
steps:
- name: Checkout
uses: actions/checkout@master
uses: actions/checkout@v2
- name: Set Node.js 10.x
uses: actions/setup-node@master
- name: Set Node.js 12
uses: actions/setup-node@v1
with:
node-version: 10.x
node-version: 12
- name: npm install
run: npm install