From 898c3e07ed52440876cedb03da07c8578e1da166 Mon Sep 17 00:00:00 2001 From: "clandestine.eth" <96172957+0xClandestine@users.noreply.github.com> Date: Tue, 17 Sep 2024 15:05:32 -0400 Subject: [PATCH] fix: fail on storage diff (#759) * fix: fail on storage diff * test(ci): add variable to see if ci fails * test(ci): remove variable --- .github/workflows/storage-report.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/storage-report.yml b/.github/workflows/storage-report.yml index f99082670..d4665b015 100644 --- a/.github/workflows/storage-report.yml +++ b/.github/workflows/storage-report.yml @@ -12,6 +12,7 @@ jobs: - uses: actions/checkout@v4 with: submodules: recursive + - name: Install Foundry uses: foundry-rs/foundry-toolchain@v1 with: @@ -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 \ No newline at end of file + 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