-
Notifications
You must be signed in to change notification settings - Fork 18
77 lines (62 loc) · 1.83 KB
/
integration-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
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