From 6bfcc90da8f98e4ba0098d8794e9a5db8b00aea5 Mon Sep 17 00:00:00 2001 From: mozi Date: Fri, 16 Oct 2026 22:31:58 -0500 Subject: [PATCH] Run the checks on every pull request Adds a test workflow: npm test and both witness-map/table.mjs smoke runs on Node 18, 20 and 22. It runs on pushes to main and on every pull request. Co-Authored-By: Claude Haiku 5.5 Claude-Session: https://claude.ai/code/session_01A6xCT7gqE6ynhyHfX8MjSZ --- .github/workflows/test.yml | 21 +++++++++++++++++++++ README.md | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) 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..dfbdab7 --- /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, 22] + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + - run: npm test + - run: node witness-map/table.mjs + - run: node witness-map/table.mjs 1e-6 cryo diff --git a/README.md b/README.md index 739a9c0..a436c7d 100644 --- a/README.md +++ b/README.md @@ -66,7 +66,7 @@ Interactive version: **https://foundation-0.github.io/fractals/** (`index.html` ## Run it -Needs Node 18 or later, nothing else. +Needs Node 18 or later, nothing else. The checks run on every pull request, on Node 18, 20 and 22. ``` npm test # checks the model against published numbers