From 9c7c05cd5f31f727050b52c0157129bf346de810 Mon Sep 17 00:00:00 2001 From: Natanael Mojica Date: Thu, 22 May 2025 09:06:32 -0600 Subject: [PATCH] test: add check to ensure test containers build --- .github/workflows/tap_integration_test.yml | 52 +++++++++++++++++++ .../tap_integration_test.yml.disable | 31 ----------- 2 files changed, 52 insertions(+), 31 deletions(-) create mode 100644 .github/workflows/tap_integration_test.yml delete mode 100644 .github/workflows/tap_integration_test.yml.disable diff --git a/.github/workflows/tap_integration_test.yml b/.github/workflows/tap_integration_test.yml new file mode 100644 index 000000000..b02e07d60 --- /dev/null +++ b/.github/workflows/tap_integration_test.yml @@ -0,0 +1,52 @@ +name: Test GraphTally +on: + push: + pull_request: + branches: [main] + +jobs: + # test job requires a full local testnet + # running, and it requires way more memory + # than what actions supports + # test: + # runs-on: ubuntu-latest + # steps: + # - name: Checkout code + # uses: actions/checkout@v3 + # + # - name: Set up Docker Buildx # Changed from "Set up Docker" for clarity + # uses: docker/setup-buildx-action@v2 + # + # - name: Run make setup + # run: make setup + # + # - name: Run tests + # run: make rav_tests + # + # - name: Tear down containers + # if: always() + # run: make down + build_docker_images: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up QEMU # Useful for multi-platform builds + uses: docker/setup-qemu-action@v2 + + - name: Set up Docker Buildx # Enhances docker build capabilities + uses: docker/setup-buildx-action@v2 + + # Login to a Docker registry is not needed if push: false and not pushing images + # - name: Login to GitHub Container Registry + # uses: docker/login-action@v3 + # with: + # registry: ghcr.io + # username: ${{ github.actor }} + # password: ${{ secrets.GITHUB_TOKEN }} + - name: Build indexer-service image with Docker Compose + run: docker compose -f contrib/docker-compose.yml build indexer-service + + - name: Build tap-agent image with Docker Compose + run: docker compose -f contrib/docker-compose.yml build tap-agent diff --git a/.github/workflows/tap_integration_test.yml.disable b/.github/workflows/tap_integration_test.yml.disable deleted file mode 100644 index b990b0be5..000000000 --- a/.github/workflows/tap_integration_test.yml.disable +++ /dev/null @@ -1,31 +0,0 @@ -name: Test GraphTally Protocol -on: - push: - # branches: [main] - pull_request: - branches: [main] - -jobs: - test: - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v3 - - - name: Set up Docker - uses: docker/setup-buildx-action@v2 - - - name: Set up Docker cache - uses: docker/setup-buildx-action@v2 - with: - install: true - - - name: Run make setup - run: make setup - - - name: Run tests - run: make rav_tests - - - name: Tear down containers - if: always() - run: make down