Skip to content

Commit

Permalink
Merge pull request #298 from morpho-labs/certora/add-ci
Browse files Browse the repository at this point in the history
[Certora] Add CI
  • Loading branch information
QGarchery authored Aug 14, 2023
2 parents 50e3bfa + 6bafcf1 commit 2e20166
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 3 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/certora.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Certora

on:
push:
branches:
- main
pull_request:
workflow_dispatch:

jobs:
verify:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Install python
uses: actions/setup-python@v4
with:
python-version: "3.10"

- name: Install certora
run: pip install certora-cli

- name: Install solc
run: |
wget https://github.com/ethereum/solidity/releases/download/v0.8.19/solc-static-linux
chmod +x solc-static-linux
sudo mv solc-static-linux /usr/local/bin/solc8.19
- name: Verify rule ${{ matrix.script }}
run: |
echo "key length" ${#CERTORAKEY}
bash certora/scripts/${{ matrix.script }} --solc solc8.19
env:
CERTORAKEY: ${{ secrets.CERTORAKEY }}

strategy:
fail-fast: false
max-parallel: 4

matrix:
script:
- verifyBlue.sh
5 changes: 3 additions & 2 deletions certora/scripts/verifyBlue.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/sh
#!/bin/bash

set -euxo pipefail

certoraRun \
certora/harness/MorphoHarness.sol \
Expand All @@ -7,5 +9,4 @@ certoraRun \
--loop_iter 3 \
--optimistic_loop \
--msg "Morpho Blue" \
--send_only \
"$@"
2 changes: 1 addition & 1 deletion hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const config: HardhatUserConfig = {
solidity: {
compilers: [
{
version: "0.8.21",
version: "0.8.19",
settings: {
optimizer: {
enabled: true,
Expand Down

0 comments on commit 2e20166

Please sign in to comment.