-
Notifications
You must be signed in to change notification settings - Fork 1
52 lines (42 loc) · 1.24 KB
/
plonk.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
name: Plonk Unit Tests
on:
push:
branches:
- main
- 'dev/*'
pull_request:
branches:
- main
jobs:
build_and_push:
name: Build and Push
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install Foundry
run: |
curl -L https://foundry.paradigm.xyz | bash
export PATH="$HOME/.config/.foundry/bin:$PATH"
foundryup
- name: Install scarb 2.8.2
run: |
curl --proto '=https' --tlsv1.2 -sSf https://docs.swmansion.com/scarb/install.sh | sh -s -- -v 2.8.2
- name: Install Starknet Foundry
run: |
curl -L https://raw.githubusercontent.com/foundry-rs/starknet-foundry/master/scripts/install.sh | bash
snfoundryup
- name: Set PATH environment variable
run: echo "PATH=$HOME/.local/bin:$PATH" >> $GITHUB_ENV
- name: Check versions
run: |
scarb --version
snforge --version
- name: Build contract with scarb
run: |
cd plonk-verifier
scarb build
- name: Run tests with snforge
run: |
cd plonk-verifier
snforge test --detailed-resources --max-n-steps 30000000