From aeb961f9c3c742767fc0a5dbee59f3276afc80a0 Mon Sep 17 00:00:00 2001 From: PanAchy Date: Mon, 11 May 2026 08:33:24 -0500 Subject: [PATCH] ci: add CI workflow for build and test on Node 20, 22, 24 Runs on push to develop and PRs to develop/main. Tests against the three current Node LTS lines to catch platform-specific issues like #80. --- .github/workflows/ci.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..6dd70c1 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,37 @@ +name: ci + +on: + push: + branches: [develop] + pull_request: + branches: [develop, main] + +permissions: + contents: read + +jobs: + build: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + node-version: [20, 22, 24] + steps: + - uses: actions/checkout@v4 + + - name: Setup Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + + - name: Install dependencies + run: npm ci + + - name: Build + run: npm run build + + - name: Typecheck + run: npm run typecheck + + - name: Run tests + run: npm test