forked from ethereum-optimism/superchain-registry
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (32 loc) · 1.28 KB
/
validation.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
name: Validate Modified Chains
on:
workflow_run:
workflows: ["Maintainer Approval"]
types:
- completed
jobs:
validate-modified:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: ${{ github.event.workflow_run.head_commit.id }}
fetch-depth: 0 # Ensure the full history is fetched
- name: Fetch base branch
run: |
git fetch origin ${{ github.event.workflow_run.base_sha }}
- name: "Install just"
run: |
wget -qO - 'https://proget.makedeb.org/debian-feeds/prebuilt-mpr.pub' | gpg --dearmor | sudo tee /usr/share/keyrings/prebuilt-mpr-archive-keyring.gpg 1> /dev/null
echo "deb [arch=all,$(dpkg --print-architecture) signed-by=/usr/share/keyrings/prebuilt-mpr-archive-keyring.gpg] https://proget.makedeb.org prebuilt-mpr $(lsb_release -cs)" | sudo tee /etc/apt/sources.list.d/prebuilt-mpr.list
sudo apt update
sudo apt install just
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
- name: Run validation checks
env:
CI_MAINNET_RPC: ${{ secrets.CI_MAINNET_RPC }}
CI_SEPOLIA_RPC: ${{ secrets.CI_SEPOLIA_RPC }}
run: |
just validate-modified-chains ${{ github.event.workflow_run.base_sha }}