From f0792cdb08e57ee828c4690bb799891be0c11025 Mon Sep 17 00:00:00 2001 From: Jason Pierce Date: Wed, 28 Aug 2024 17:40:17 -0500 Subject: [PATCH] Update CI workflow to run on pull requets --- .github/workflows/{nodejs.yml => ci.yml} | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) rename .github/workflows/{nodejs.yml => ci.yml} (73%) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/ci.yml similarity index 73% rename from .github/workflows/nodejs.yml rename to .github/workflows/ci.yml index 80d48d6..cc889d8 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/ci.yml @@ -1,6 +1,10 @@ name: Node CI -on: [push] +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] jobs: build: @@ -11,9 +15,9 @@ jobs: node-version: [12.x, 14.x, lts/*] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - name: npm install, build, and test