Skip to content

Bump github.com/golang-jwt/jwt/v4 from 4.5.0 to 4.5.1 in the go_modules group across 1 directory #84

Bump github.com/golang-jwt/jwt/v4 from 4.5.0 to 4.5.1 in the go_modules group across 1 directory

Bump github.com/golang-jwt/jwt/v4 from 4.5.0 to 4.5.1 in the go_modules group across 1 directory #84

name: Check Storage Layout
on:
pull_request:
branches:
- master
jobs:
check_storage:
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: stable
- name: "Generate and prepare the contract artifacts"
run: |
cd contracts && mkdir pr
for file in $(find src -name '*.sol'); do
contract_name=$(basename "$file" .sol)
forge inspect "$contract_name" storage > pr/"$contract_name".md
done
- name: Checkout Base Branch
env:
BASE: ${{ github.event.pull_request.base.sha }}
run: |
git fetch origin $BASE
git checkout $BASE
- name: "Generate and prepare the contract artifacts"
run: |
cd contracts && mkdir base
for file in $(find src -name '*.sol'); do
contract_name=$(basename "$file" .sol)
forge inspect "$contract_name" storage > base/"$contract_name".md
done
- name: Compare outputs
run: |
if ! diff --unified contracts/pr contracts/base; then
# Note: We are only creating a warning because storage changes might be intentional but should be looked into
# reach out to steven if you see a warning on this workflow and need help validating if it is expected or not
echo "::warning::Differences found between PR and base storage layouts"
fi