diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 460489d..0b1aea0 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -1,6 +1,6 @@ name: Node CI -on: [push] +on: [push, pull_request] jobs: build: runs-on: ${{ matrix.os }} @@ -11,14 +11,14 @@ jobs: os: [ubuntu-latest, macos-latest] steps: - - uses: actions/checkout@v2 - - name: Use Node.js 14.x - uses: actions/setup-node@v1 - with: - node-version: 14.x - - name: npm install, build, and test - run: | - npm install - npm test - env: - CI: true + - uses: actions/checkout@v3 + - name: Use Node.js 16.x + uses: actions/setup-node@v3 + with: + node-version: 16.x + - name: npm install, build, and test + run: | + npm install + npm test + env: + CI: true