generated from proofoftom/buidler-waffle-typechain-quasar
-
Notifications
You must be signed in to change notification settings - Fork 91
76 lines (72 loc) · 1.97 KB
/
test-e2e.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
name: End to end tests
on:
workflow_dispatch:
push:
branches:
- 'develop'
env:
NODE_VERSION: 16.x
CIRCUIT_TYPE: micro
ZKEYS_DOWNLOAD_SCRIPT: "download-6-8-2-3.sh"
jobs:
e2e-test:
runs-on: ubuntu-22.04
steps:
- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
- name: Install g++ library dependencies
run: |
sudo apt update
sudo apt-get install cmake build-essential libgmp-dev libsodium-dev nlohmann-json3-dev nasm g++ curl
- name: Install rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Checkout circom
uses: actions/checkout@v3
with:
repository: iden3/circom
path: circom
- name: Build circom
run: |
cd circom
cargo build --release
cargo install --path circom
- name: Checkout rapidsnark
uses: actions/checkout@v3
with:
repository: iden3/rapidsnark
path: rapidsnark
- name: Build rapidsnark
run: |
cd rapidsnark
npm install
git submodule init
git submodule update
npx task createFieldSources
npx task buildProver
- name: Checkout Clrfund
uses: actions/checkout@v3
with:
path: monorepo
- name: Download micro zk circuit params
run: |
$GITHUB_WORKSPACE/monorepo/.github/scripts/${ZKEYS_DOWNLOAD_SCRIPT}
- name: Build Clrfund
run: |
# use https to avoid error: unable to connect to github.com
git config --global url."https://".insteadOf git://
cd monorepo
yarn && yarn build
- name: Start hardhat network
run: |
cd monorepo
yarn start:node &
- name: Run tests
run: |
export CIRCUIT_DIRECTORY="$GITHUB_WORKSPACE/params"
export RAPIDSNARK_DIRECTORY="$GITHUB_WORKSPACE/rapidsnark/build"
cd monorepo
yarn test:e2e