-
Notifications
You must be signed in to change notification settings - Fork 8
54 lines (42 loc) · 1.24 KB
/
ts_test.yaml
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
name: TS tests
on: [push]
jobs:
test:
name: yarn test
runs-on: ubuntu-latest
environment: CI
env:
ETHEREUM_JSON_RPC_API_URL: ${{ secrets.ETHEREUM_JSON_RPC_API_URL }}
defaults:
run:
working-directory: packages/noir-ethereum-api
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js 20.x
uses: actions/setup-node@v3
with:
node-version: '20.x'
- name: Enable Corepack and Install Yarn 4
run: |
corepack enable
yarn set version latest
- name: Install Dependencies
run: yarn install
- name: Run Unit Tests
run: yarn test:unit
- name: Install Nargo
uses: noir-lang/[email protected]
with:
toolchain: nightly-2024-01-11 # Pin at 0.23.0 when it's released. We need nightly now as 0.22.0 doesn't have the oracles
- name: Compile Circuit
run: nargo compile
working-directory: circuit
- name: Start Oracle Server
run: |
yarn oracle-server &
- name: Generate Proof
run: nargo prove --oracle-resolver=http://localhost:5555
working-directory: circuit
- name: Run e2e Tests
run: yarn test:e2e