Skip to content

Commit

Permalink
Update CI workflow to run on pull requets
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonPierce committed Aug 28, 2024
1 parent 562d865 commit f0792cd
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/nodejs.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Node CI

on: [push]
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
build:
Expand All @@ -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
Expand Down

0 comments on commit f0792cd

Please sign in to comment.