From f94ff9ceae1bec6f5b55198990ed46af272ecdbc Mon Sep 17 00:00:00 2001 From: lesterli Date: Tue, 15 Oct 2024 09:39:10 +0800 Subject: [PATCH] fix: CI failed to run the op e2e tests (#85) --- .github/workflows/ci.yml | 2 ++ Makefile | 5 ++++- itest/opstackl2/README.md | 5 ++++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 55c2bbe8..bad6d229 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -54,6 +54,8 @@ jobs: uses: actions/setup-go@v4 with: go-version: '1.22' + - name: Set up the devnet data + run: make op-e2e-devnet - name: Run e2e OP tests run: make test-e2e-op diff --git a/Makefile b/Makefile index fe58612e..4e3942d2 100644 --- a/Makefile +++ b/Makefile @@ -112,8 +112,11 @@ test-e2e-bcd: clean-e2e install-babylond install-bcd test-e2e-wasmd: clean-e2e install-babylond install-wasmd @go test -mod=readonly -timeout=25m -v $(PACKAGES_E2E) -count=1 --tags=e2e_wasmd -FILTER ?= . test-e2e-op: clean-e2e install-babylond + @go test -mod=readonly -timeout=25m -v $(PACKAGES_E2E_OP) -count=1 --tags=e2e_op + +FILTER ?= . +test-e2e-op-filter: clean-e2e install-babylond @go test -mod=readonly -timeout=25m -v $(PACKAGES_E2E_OP) -count=1 --tags=e2e_op --run ^$(FILTER)$ test-e2e-op-ci: clean-e2e install-babylond diff --git a/itest/opstackl2/README.md b/itest/opstackl2/README.md index f833b909..c18acb22 100644 --- a/itest/opstackl2/README.md +++ b/itest/opstackl2/README.md @@ -11,6 +11,9 @@ Then run the following command to start the e2e tests: ```bash $ make test-e2e-op +# Run all tests +$ make test-e2e-op + # Filter specific test -$ make test-e2e-op FILTER=TestFinalityGadget +$ make test-e2e-op-filter FILTER=TestFinalityGadget ```