Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integration e2e test #2 #70

Merged
merged 5 commits into from
Dec 14, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
uses: babylonlabs-io/.github/.github/workflows/[email protected]
with:
run-unit-tests: true
run-integration-tests: true
run-integration-tests: false
integration-tests-command: |
make test-e2e
maurolacy marked this conversation as resolved.
Show resolved Hide resolved

Expand All @@ -21,4 +21,4 @@ jobs:
with:
publish: false
dockerfile: ./contrib/images/local-bcd/Dockerfile
repoName: babylon-sdk
repoName: babylon-sdk
10 changes: 1 addition & 9 deletions .github/workflows/integration-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,9 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Build IBC Simulator BCD Image
run: make build-ibcsim-bcd

- name: Build Babylond Image
run: make build-babylond

- name: Cache Go
uses: actions/setup-go@v5
with:
go-version: 1.23

- name: Run Integration Tests
run: sudo make test-e2e-bcd-consumer-integration
run: sudo make test-e2e
16 changes: 11 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,16 @@ test-all: test
test:
$(MAKE) -C demo test
$(MAKE) -C x test
$(MAKE) -C tests/e2e/ test

test-e2e:
test-e2e: build-docker-e2e test-e2e-cache

test-e2e-cache:
$(MAKE) -C tests/e2e/ test
maurolacy marked this conversation as resolved.
Show resolved Hide resolved
$(MAKE) test-e2e-bcd-consumer-integration

clean-e2e:
docker container rm -f $(shell docker container ls -a -q) || true
docker network prune -f || true

###############################################################################
### Linting ###
Expand Down Expand Up @@ -83,6 +89,8 @@ proto-lint:
### Integration e2e ###
###############################################################################

build-docker-e2e: build-ibcsim-bcd build-babylond

build-ibcsim-bcd:
$(MAKE) -C contrib/images ibcsim-bcd

Expand All @@ -93,6 +101,4 @@ start-bcd-consumer-integration:
$(MAKE) -C contrib/images start-bcd-consumer-integration

test-e2e-bcd-consumer-integration: start-bcd-consumer-integration
@cd tests/e2e
@go test -run TestBCDConsumerIntegrationTestSuite -mod=readonly -timeout=60m -v github.com/babylonlabs-io/babylon-sdk/tests/e2e --tags=e2e
@cd -
@cd tests/e2e && go test -run TestBCDConsumerIntegrationTestSuite -mod=readonly -timeout=60m -v github.com/babylonlabs-io/babylon-sdk/tests/e2e --tags=e2e
Loading