From ddf66ad5908c648b7af27300d271f6d3720110a7 Mon Sep 17 00:00:00 2001 From: Nick Bilyk Date: Tue, 4 Nov 2025 20:01:49 -0800 Subject: [PATCH] ci: update github build and test action --- .github/workflows/{nodejs.yml => ci.yml} | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) rename .github/workflows/{nodejs.yml => ci.yml} (59%) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/ci.yml similarity index 59% rename from .github/workflows/nodejs.yml rename to .github/workflows/ci.yml index 65f48cb..d932645 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/ci.yml @@ -1,6 +1,8 @@ name: Node CI -on: [push] +on: + pull_request: + branches: [main] jobs: build: @@ -8,18 +10,19 @@ jobs: strategy: matrix: - node-version: [14.x, 16.x] + node-version: [22.x] steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - name: npm install, build, and test run: | npm ci - npm run build --if-present - npm test + npm run build + npm run test + npm run test:compiler env: CI: true