From e403dcea63e015f0973947ed69675e084347038c Mon Sep 17 00:00:00 2001 From: garyghayrat Date: Tue, 30 Jan 2024 16:25:46 -0500 Subject: [PATCH] Add action to check interface is in sync w/ contract --- .github/workflows/ci.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7dde004..7f6392c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,6 +35,19 @@ jobs: - name: Run tests run: forge test + - name: Install `jd` CLI + run: go install github.com/josephburnett/jd@latest + + - name: Ensure correctness of the `IERC5564Announcer` interface + run: | + diff=$(jd -set out/ERC5564Announcer.sol/ERC5564Announcer.json out/IERC5564Announcer.sol/IERC5564Announcer.json) + if [[ -n $diff ]]; then exit 1; fi + + - name: Ensure correctness of the `IERC6538Registry` interface + run: | + diff=$(jd -set out/ERC6538Registry.sol/ERC6538Registry.json out/IERC6538Registry.sol/IERC6538Registry.json) + if [[ -n $diff ]]; then exit 1; fi + coverage: runs-on: ubuntu-latest steps: