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