diff --git a/.github/workflows/checks-all.yml b/.github/workflows/checks-all.yml index 779d1b436..a1eb7bb3f 100755 --- a/.github/workflows/checks-all.yml +++ b/.github/workflows/checks-all.yml @@ -276,6 +276,39 @@ jobs: - name: Run MCR Client Tests run: nix develop --command bash -c "just mcr-client native build.local.test -t=false" + bridge-integration-tests: + strategy: + matrix: + include: + - os: ubuntu-22.04 + arch: x86_64 + runs-on: buildjet-8vcpu-ubuntu-2204 + + runs-on: ${{ matrix.runs-on }} + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Install Aptos CLI + run: | + curl -fsSL "https://raw.githubusercontent.com/andygolay/aptos-cli-install/refs/heads/main/install_cli_v3.5.py" | python3 + + - name: Install Nix + uses: DeterminateSystems/nix-installer-action@main + + - uses: cachix/cachix-action@v15 + with: + name: movementlabs + authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' + + - name: Run Movement Full Node + indexer Tests Against Local ETH and Local Celestia + env: + CELESTIA_LOG_LEVEL: FATAL # adjust the log level while debugging + DOT_MOVEMENT_PATH: ${{ github.workspace }}/.movement + run: | + nix develop --command bash -c "just bridge native build.setup.eth-local.celestia-local.bridge.test -t=false" + ## any use of Move CLI requires ubuntu-24.04 and to not run on buildjet move-modules-test: if: github.event.label.name == 'cicd:bridge' || github.ref == 'refs/heads/main' diff --git a/process-compose/bridge/process-compose.test.yml b/process-compose/bridge/process-compose.test.yml new file mode 100644 index 000000000..1f3f6f4db --- /dev/null +++ b/process-compose/bridge/process-compose.test.yml @@ -0,0 +1,31 @@ +version: "3" + +environment: + +processes: + test_e2e: + command: | + DOT_MOVEMENT_PATH="$(pwd)/.movement" cargo test --test bridge_e2e_test_framework -- --nocapture --test-threads=1 + depends_on: + bridge: + condition: process_healthy + availability: + exit_on_end: false + + test_eth: + command: | + DOT_MOVEMENT_PATH="$(pwd)/.movement" cargo test --test client_eth_tests -- --nocapture --test-threads=1 + depends_on: + bridge: + condition: process_healthy + availability: + exit_on_end: false + + test_mvt: + command: | + DOT_MOVEMENT_PATH="$(pwd)/.movement" cargo test --test client_mvt_tests -- --nocapture --test-threads=1 + depends_on: + bridge: + condition: process_healthy + availability: + exit_on_end: false \ No newline at end of file