Fix/verify bytecode ci #32
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Verify deployed contracts' bytecode | |
on: | |
pull_request: | |
branches: | |
- "master" | |
jobs: | |
assert-bytecode: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
- name: Install poetry | |
run: pipx install poetry | |
- name: Setup python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
cache: poetry | |
- name: Install python dependencies | |
run: poetry install | |
- name: Compile contracts | |
run: poetry run brownie compile | |
- name: Verify bytecode of contracts | |
uses: lidofinance/action-verify-bytecode@master | |
with: | |
file: artifacts.json |