cli: clean up fund usage #432
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Validate anchor IDL | |
on: | |
pull_request: | |
branches: ["main"] | |
paths: | |
- "anchor/**" | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Validate anchor IDL | |
shell: bash | |
run: | | |
if [ $(cat anchor/target/idl/glam.json | jq -r .address) == "GLAMbTqav9N9witRjswJ8enwp9vv5G8bsSJ2kPJ4rcyc" ]; then | |
echo "Anchor IDL program address is correct." | |
else | |
echo "Anchor IDL program address is incorrect." | |
echo "Program address in the main branch IDL should be GLAMbTqav9N9witRjswJ8enwp9vv5G8bsSJ2kPJ4rcyc (mainnet deploy)." | |
echo "Make sure you run \"anchor build\" or \"pnpm run anchor-build\" before pushing changes to your PR." | |
exit 1 | |
fi |