Skip to content

Commit

Permalink
Integration e2e test #2 (#70)
Browse files Browse the repository at this point in the history
Small follow-up
  • Loading branch information
maurolacy authored Dec 14, 2024
1 parent 4ec9563 commit 354ec34
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 35 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
run-unit-tests: true
run-integration-tests: true
integration-tests-command: |
make test-e2e
make test-integration
docker_pipeline:
uses: babylonlabs-io/.github/.github/workflows/[email protected]
Expand All @@ -21,4 +21,4 @@ jobs:
with:
publish: false
dockerfile: ./contrib/images/local-bcd/Dockerfile
repoName: babylon-sdk
repoName: babylon-sdk
18 changes: 18 additions & 0 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: e2e
on:
push:
branches:
- '**'

jobs:
test:
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Cache Go
uses: actions/setup-go@v5
with:
go-version: 1.23
- name: Run E2E Tests
run: sudo make test-e2e
26 changes: 0 additions & 26 deletions .github/workflows/integration-e2e.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
run-unit-tests: true
run-integration-tests: true
integration-tests-command: |
make test-e2e
make test-integration
docker_pipeline:
uses: babylonlabs-io/.github/.github/workflows/[email protected]
Expand All @@ -24,4 +24,4 @@ jobs:
with:
publish: true
dockerfile: ./contrib/images/local-bcd/Dockerfile
repoName: babylon-sdk
repoName: babylon-sdk
18 changes: 13 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,19 @@ test-all: test
test:
$(MAKE) -C demo test
$(MAKE) -C x test
$(MAKE) -C tests/e2e/ test

test-e2e:
test-integration:
$(MAKE) -C tests/e2e/ test

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

test-e2e-cache:
$(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 +91,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 +103,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

0 comments on commit 354ec34

Please sign in to comment.