From 2a49e3610d824c7d352d85ef51747710f35f7156 Mon Sep 17 00:00:00 2001 From: Stephen Miller Date: Fri, 6 Mar 2026 04:55:10 -0600 Subject: [PATCH] ci: add test.yml workflow for Node 18 and 20 matrix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Creates .github/workflows/test.yml that runs npm test against Node 18 and 20 on every pull_request and push to main. No GitHub token required — the test suite uses the mock layer exclusively and runs offline. Closes #256 --- .github/workflows/test.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..cde1211 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,21 @@ +name: Test + +on: + push: + branches: [main] + pull_request: + +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [18, 20] + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + cache: npm + - run: npm ci + - run: npm test