-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'refs/heads/master' into feature/memory-size-option
# Conflicts: # build/main.cjs # js/witness_calculator.js
- Loading branch information
Showing
4 changed files
with
96 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Continuous Integration | ||
name: JS Witness calc tests | ||
on: | ||
push: | ||
branches: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
name: Snarkjs Integration Test | ||
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 | ||
with: | ||
path: circom_runtime | ||
|
||
- name: Checkout project | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: iden3/snarkjs | ||
path: snarkjs | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
check-latest: true | ||
cache: 'npm' | ||
cache-dependency-path: snarkjs/package-lock.json | ||
|
||
- name: Install circom_runtime dependencies | ||
run: npm ci | ||
working-directory: circom_runtime | ||
|
||
- name: Build circom_runtime | ||
run: npm run build | ||
working-directory: circom_runtime | ||
|
||
- name: Install circom_runtime to snarkjs as a link | ||
run: npm install ../circom_runtime | ||
working-directory: snarkjs | ||
|
||
- name: Install snarkjs dependencies | ||
run: npm ci | ||
working-directory: snarkjs | ||
|
||
- name: Build snarkjs | ||
run: npm run build | ||
working-directory: snarkjs | ||
|
||
- name: Run snarkjs tests | ||
run: npm test | ||
working-directory: snarkjs | ||
|
||
- name: Install smart_contract_tests dependencies | ||
working-directory: snarkjs/smart_contract_tests | ||
run: npm ci | ||
|
||
- name: Run smart_contract_tests | ||
working-directory: snarkjs/smart_contract_tests | ||
run: npm test | ||
|
||
- name: Install browser dependencies | ||
working-directory: snarkjs/browser_tests | ||
run: npm ci | ||
|
||
- name: Run browser tests | ||
working-directory: snarkjs/browser_tests | ||
run: npm test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters