Skip to content

Commit

Permalink
Workflow Updated (#803)
Browse files Browse the repository at this point in the history
This PR updates the Certora Workflow to use the latest version and
removes the use of scripts in favour of using the command directly.
Additionally have updated the `checkout` and `setup-node` versions to
the latest major release.
  • Loading branch information
remedcu authored Jul 29, 2024
1 parent 2556b94 commit eccba0d
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 77 deletions.
16 changes: 4 additions & 12 deletions .github/workflows/certora.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,39 +15,31 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
rule: ["verifyOwners.sh", "verifySafe.sh", "verifyModules.sh", "verifyNativeTokenRefund.sh", "verifySignatures.sh"]
rule: ["owner", "safe", "module", "nativeTokenRefund", "signatures"]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install python
uses: actions/setup-python@v4
with: { python-version: 3.11 }

- name: Install java
uses: actions/setup-java@v3
with: { java-version: "17", java-package: jre, distribution: semeru }

- name: Install certora cli
run: pip install -Iv certora-cli==7.6.3
run: pip install -r certora/requirements.txt

- name: Install solc
run: |
wget https://github.com/ethereum/solidity/releases/download/v0.7.6/solc-static-linux
chmod +x solc-static-linux
sudo mv solc-static-linux /usr/local/bin/solc7.6
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.rule }}
run: |
cd certora
touch applyHarness.patch
make munged
cd ..
echo "key length" ${#CERTORAKEY}
./certora/scripts/${{ matrix.rule }}
certoraRun certora/conf/${{ matrix.rule }}.conf --wait_for_results=all
env:
CERTORAKEY: ${{ secrets.CERTORA_KEY }}
16 changes: 8 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ jobs:
lint-solidity:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: "npm"
Expand All @@ -19,8 +19,8 @@ jobs:
lint-typescript:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: "npm"
Expand All @@ -37,8 +37,8 @@ jobs:
env:
SAFE_CONTRACT_UNDER_TEST: ${{ matrix.contract-name }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: "npm"
Expand Down Expand Up @@ -76,8 +76,8 @@ jobs:
SOLIDITY_VERSION: ${{ matrix.solidity }}
SOLIDITY_SETTINGS: ${{ matrix.settings }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: "npm"
Expand Down
1 change: 1 addition & 0 deletions certora/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
certora-cli==7.10.1
11 changes: 0 additions & 11 deletions certora/scripts/verifyModules.sh

This file was deleted.

11 changes: 0 additions & 11 deletions certora/scripts/verifyNativeTokenRefund.sh

This file was deleted.

11 changes: 0 additions & 11 deletions certora/scripts/verifyOwners.sh

This file was deleted.

12 changes: 0 additions & 12 deletions certora/scripts/verifySafe.sh

This file was deleted.

12 changes: 0 additions & 12 deletions certora/scripts/verifySignatures.sh

This file was deleted.

0 comments on commit eccba0d

Please sign in to comment.