Skip to content

Commit e8e590f

Browse files
committed
feat: add threadman worker for Node.js multi-threading support
- Introduced `threadman_worker.js` to handle worker tasks using workerpool. - Updated `utils.js` to remove unnecessary global BigInt comment. - Refactored algebra tests to use Vitest framework, improving test structure and readability. - Converted all test files to use Vitest for assertions and lifecycle methods. - Added Vite configuration for building both Node.js and browser-compatible versions. - Implemented clean-up plugin in Vite to remove stale build artifacts before each build. - Enhanced test cases for various fields (Zq, Rat, Scalar) to ensure correctness and consistency.
1 parent 399c45a commit e8e590f

36 files changed

+13362
-26526
lines changed

.eslintrc.cjs

Lines changed: 0 additions & 30 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,27 @@
11
name: Continuous Integration
2-
on:
3-
push:
4-
branches:
5-
- master
6-
pull_request:
2+
on: [push, pull_request]
73

84
jobs:
95
test:
106
name: Test
11-
runs-on: ${{ matrix.os }}
12-
13-
strategy:
14-
fail-fast: false
15-
matrix:
16-
os: [ubuntu-latest, macos-latest, windows-latest]
17-
node-version: [lts/*, lts/-1, lts/-2]
7+
timeout-minutes: 15
8+
runs-on: ubuntu-latest
189

1910
steps:
2011
- name: Checkout project
21-
uses: actions/checkout@v2
12+
uses: actions/checkout@v6
2213

2314
- name: Setup Node.js
24-
uses: actions/setup-node@v3
15+
uses: actions/setup-node@v6
2516
with:
26-
node-version: ${{ matrix.node-version }}
27-
check-latest: true
28-
cache: 'npm'
17+
node-version: "lts/*"
18+
cache: "npm"
2919

3020
- name: Install dependencies
3121
run: npm ci
3222

23+
- name: Install Playwright dependencies
24+
run: npx playwright install
25+
3326
- name: Run tests
3427
run: npm test

0 commit comments

Comments
 (0)