Skip to content

Commit 06a9fb3

Browse files
authored
Merge pull request #33 from morpho-labs/test/certora-ci
[round 2] Add certora to the CI
2 parents cabb3b2 + aab5fc4 commit 06a9fb3

File tree

5 files changed

+42
-4
lines changed

5 files changed

+42
-4
lines changed

.github/workflows/certora.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Certora
2+
3+
on:
4+
push:
5+
workflow_dispatch:
6+
7+
jobs:
8+
verify:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v3
13+
14+
- name: Install python
15+
uses: actions/setup-python@v4
16+
with:
17+
python-version: "3.10"
18+
19+
- name: Install certora
20+
run: pip install certora-cli
21+
22+
- name: Install solc
23+
run: |
24+
wget https://github.com/ethereum/solidity/releases/download/v0.8.17/solc-static-linux
25+
chmod +x solc-static-linux
26+
sudo mv solc-static-linux /usr/local/bin/solc8.17
27+
28+
- name: Verify rule ${{ matrix.script }}
29+
run: |
30+
echo "key length" ${#CERTORAKEY}
31+
bash certora/scripts/${{ matrix.script }} --solc solc8.17
32+
env:
33+
CERTORAKEY: ${{ secrets.CERTORAKEY }}
34+
35+
strategy:
36+
fail-fast: false
37+
max-parallel: 4
38+
39+
matrix:
40+
script:
41+
- dll-fifo.sh
42+
- dll-simple.sh

certora/scripts/dll-fifo.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,5 @@ certoraRun \
77
--verify MockDLL:certora/specs/dll-fifo.spec \
88
--loop_iter 4 \
99
--optimistic_loop \
10-
--send_only \
1110
--msg "FIFO DLL verification" \
1211
$@

certora/scripts/dll-simple.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,5 @@ certoraRun \
77
--verify MockDLL:certora/specs/dll-simple.spec \
88
--loop_iter 7 \
99
--optimistic_loop \
10-
--send_only \
1110
--msg "Simple DLL verification" \
1211
$@

certora/scripts/sanity-fifo.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,5 @@ certoraRun \
77
--verify MockDLL:certora/specs/sanity.spec \
88
--loop_iter 7 \
99
--optimistic_loop \
10-
--send_only \
1110
--msg "FIFO DLL sanity" \
1211
$@

certora/scripts/sanity-simple.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,5 @@ certoraRun \
77
--verify MockDLL:certora/specs/sanity.spec \
88
--loop_iter 7 \
99
--optimistic_loop \
10-
--send_only \
1110
--msg "Simple DLL sanity" \
1211
$@

0 commit comments

Comments
 (0)