Skip to content

Commit

Permalink
make and workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
pyramation committed Nov 13, 2024
1 parent b7ae6ea commit 68f53f1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 17 deletions.
13 changes: 1 addition & 12 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,7 @@ jobs:
- name: Update Git Submodules 🔄
run: |
make update-fixtures
# Enter repos/chain-registry, log commits, and pop back
pushd repos/chain-registry
echo "Last 2 commits in repos/chain-registry:"
git log -n 2 --oneline
popd
# Enter repos/chain-registry-fixtures, log commits, and pop back
pushd repos/chain-registry-fixtures
echo "Last 2 commits in repos/chain-registry-fixtures:"
git log -n 2 --oneline
popd
make submodule-status
- name: Install and Build v1 🏗️
run: |
Expand Down
18 changes: 13 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,14 +1,22 @@
.PHONY: def update-registry update-fixtures
.PHONY: def update-registry update-fixtures submodule-status

def: update-registry update-fixtures

update-registry:
@echo "Updating cosmos/chain-registry submodule to latest"
git submodule update --remote --init --recursive repos/chain-registry
@echo "cosmos/chain-registry submodule is updated to latest"

update-fixtures:
@echo "Updating chain-registry/chain-registry-fixtures submodule"
git submodule sync repos/chain-registry-fixtures
git submodule update repos/chain-registry-fixtures
@echo "chain-registry/chain-registry-fixtures submodule is updated to the commit specified in .gitmodules"
git submodule update --remote --init --recursive repos/chain-registry-fixtures

submodule-status:
@echo "Checking submodule statuses..."
@pushd repos/chain-registry >/dev/null; \
echo "Last 2 commits in repos/chain-registry:"; \
git log -n 2 --oneline; \
popd >/dev/null
@pushd repos/chain-registry-fixtures >/dev/null; \
echo "Last 2 commits in repos/chain-registry-fixtures:"; \
git log -n 2 --oneline; \
popd >/dev/null

0 comments on commit 68f53f1

Please sign in to comment.