From 4ea7d0d404d587a8a7172ad8d84eb8ef769e166c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 7 Jun 2026 09:12:22 +0000 Subject: [PATCH] Add CI workflow and fix test command --- .github/workflows/ci.yml | 42 ++++++++++++++++++++++++++++++++++++++++ package.json | 2 +- 2 files changed, 43 insertions(+), 1 deletion(-) 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..fc01344 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,42 @@ +name: CI + +on: + push: + branches: + - master + pull_request: + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +permissions: + contents: read + +jobs: + test: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + node-version: + - 20 + - 22 + - 24 + + steps: + - name: Check out repository + uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + cache: npm + + - name: Install dependencies + run: npm ci + + - name: Run tests + run: npm test diff --git a/package.json b/package.json index ea68dd9..5520ea5 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "proxy-kutti": "./proxy.js" }, "scripts": { - "test": "node --test test/" + "test": "node --test test/*.test.js" }, "dependencies": { "node-forge": "^1.3.1"