forked from lidofinance/lido-l2
-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (41 loc) · 1.24 KB
/
verify-bytecode.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
---
name: Verify deployed contracts' bytecode
on:
pull_request:
branches:
- "main"
jobs:
assert-bytecode:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false
- name: Setup node.js version
uses: actions/setup-node@v3
with:
node-version: 16
- name: Cache node_modules
id: cache-node-modules
uses: actions/cache@v3
with:
path: "**/node_modules"
key: node_modules-${{ hashFiles('**/package-lock.json') }}
restore-keys: node_modules-${{ hashFiles('**/package-lock.json') }}
- name: Install node dependencies
run: npm ci
if: |
steps.cache-node-modules.outputs.cache-hit != 'true'
- name: Compile contracts
run: npm run compile
- name: Verify bytecode of contracts on Ethereum chain
uses: lidofinance/action-verify-bytecode@master
if: always()
with:
file: artifacts-eth.json
- name: Verify bytecode of contracts on Optimism chain
uses: lidofinance/action-verify-bytecode@master
if: always()
with:
file: artifacts-opt.json
rpcUrl: ${{ secrets.OPTIMISM_RPC }}