Skip to content

Commit

Permalink
Unit tests (#112)
Browse files Browse the repository at this point in the history
* Added unit tests for js witness calculation and proof generation based on it. Added Github Action to run tests.

* Review fixes
  • Loading branch information
OBrezhniev authored Aug 20, 2024
1 parent 9f670eb commit d0c52ba
Show file tree
Hide file tree
Showing 10 changed files with 1,997 additions and 10 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Continuous Integration
on:
push:
branches:
- master
pull_request:

jobs:
test:
name: Test
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
node-version: ["18", "20", "22"]

steps:
- name: Checkout project
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
check-latest: true
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Run tests
run: npm test
Loading

0 comments on commit d0c52ba

Please sign in to comment.