Skip to content

Commit

Permalink
Add action to check interface is in sync w/ contract
Browse files Browse the repository at this point in the history
  • Loading branch information
garyghayrat committed Jan 30, 2024
1 parent aa7965e commit e403dce
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit e403dce

Please sign in to comment.