From 3108ab5594f9634c31bfe874983a2acbc09c0a0b Mon Sep 17 00:00:00 2001 From: Timothy Clem Date: Mon, 30 Mar 2020 08:38:27 -0700 Subject: [PATCH 1/2] Build on push and pr --- .github/workflows/workflow.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 4558c6f..ae0e744 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -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 From b7b0d7dce20433779a7cc9d96ee32baed74d3944 Mon Sep 17 00:00:00 2001 From: Timothy Clem Date: Mon, 30 Mar 2020 08:38:46 -0700 Subject: [PATCH 2/2] Use node 12 and specific releases of these actions --- .github/workflows/workflow.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index ae0e744..73e7ad1 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -17,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