Skip to content

Commit

Permalink
include bcd tests in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
gusin13 committed Sep 6, 2024
1 parent 93285ba commit 2f08bce
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 4 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,23 @@ jobs:
path: /tmp/docker-init-chain.tar.gz
# retention-days: 90

e2e-docker-build-ibcsim-bcd:
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Build docker ibcsim-bcd
run: |
make -C contrib/images build-ibcsim-bcd
- name: Docker save ibcsim-bcd
run: |
docker save -o /tmp/docker-ibcsim-bcd.tar.gz babylonlabs-io/ibcsim-bcd:latest
- name: Upload ibcsim-bcd artifact
uses: actions/upload-artifact@v4
with:
name: ibcsim-bcd-${{ github.sha }}
path: /tmp/docker-ibcsim-bcd.tar.gz

e2e-run-ibc-transfer:
needs: [e2e-docker-build-babylon]
runs-on: ubuntu-22.04
Expand Down Expand Up @@ -294,3 +311,33 @@ jobs:
- name: Run e2e TestSoftwareUpgradeSignetLaunchTestSuite
run: |
sudo make test-e2e-cache-upgrade-signet
e2e-run-bcd-consumer-integration-test:
needs: [e2e-docker-build-babylon, e2e-docker-build-ibcsim-bcd]
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Download babylon artifact
uses: actions/download-artifact@v4
with:
name: babylond-${{ github.sha }}
path: /tmp
- name: Download ibcsim-bcd artifact
uses: actions/download-artifact@v4
with:
name: ibcsim-bcd-${{ github.sha }}
path: /tmp
- name: Docker load babylond
run: |
docker load < /tmp/docker-babylond.tar.gz
- name: Docker load ibcsim-bcd
run: |
docker load < /tmp/docker-ibcsim-bcd.tar.gz
- name: Cache Go
uses: actions/setup-go@v5
with:
go-version: 1.21
- name: Run BCD consumer integration test
run: |
make -C contrib/images start-bcd-consumer-integration-test
8 changes: 4 additions & 4 deletions contrib/images/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ build-ibcsim-bcd:
ibcsim-bcd-rmi:
docker rmi babylonlabs-io/ibcsim-bcd 2>/dev/null; true

build-integration-test: babylond build-ibcsim-bcd
build-bcd-consumer-integration-test: babylond-e2e build-ibcsim-bcd

start-integration-test: stop-integration-test
start-bcd-consumer-integration-test: stop-bcd-consumer-integration-test
bcd/pre-deployment.sh
docker compose -f bcd/docker-compose.yml up -d

stop-integration-test:
stop-bcd-consumer-integration-test:
docker compose -f bcd/docker-compose.yml down
rm -rf bcd/.testnets

.PHONY: all babylond babylond-before-upgrade cosmos-relayer e2e-init-chain babylond-rmi babylond-rmi-upgrade cosmos-relayer-rmi build-ibcsim-bcd ibcsim-bcd-rmi build-integration-test start-integration-test stop-integration-test
.PHONY: all babylond babylond-before-upgrade cosmos-relayer e2e-init-chain babylond-rmi babylond-rmi-upgrade cosmos-relayer-rmi build-ibcsim-bcd ibcsim-bcd-rmi build-bcd-consumer-integration-test start-bcd-consumer-integration-test stop-bcd-consumer-integration-test

0 comments on commit 2f08bce

Please sign in to comment.