Skip to content

Commit

Permalink
fix: fail on storage diff (#759)
Browse files Browse the repository at this point in the history
* fix: fail on storage diff

* test(ci): add variable to see if ci fails

* test(ci): remove variable
  • Loading branch information
0xClandestine authored Sep 17, 2024
1 parent d2ae632 commit 898c3e0
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/storage-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: recursive

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
Expand All @@ -34,6 +35,9 @@ jobs:
- name: Compare outputs
run: |
if ! diff --unified pr target; then
echo "::warning::Differences found between PR and target branch storage layouts"
fi
if diff --unified pr target; then
echo "No differences found"
else
echo "::error::Differences found between PR and target branch storage layouts"
exit 1
fi

0 comments on commit 898c3e0

Please sign in to comment.