|
| 1 | +name: Test GraphTally |
| 2 | +on: |
| 3 | + push: |
| 4 | + pull_request: |
| 5 | + branches: [main] |
| 6 | + |
| 7 | +jobs: |
| 8 | + # test job requires a full local testnet |
| 9 | + # running, and it requires way more memory |
| 10 | + # than what actions supports |
| 11 | + # test: |
| 12 | + # runs-on: ubuntu-latest |
| 13 | + # steps: |
| 14 | + # - name: Checkout code |
| 15 | + # uses: actions/checkout@v3 |
| 16 | + # |
| 17 | + # - name: Set up Docker Buildx # Changed from "Set up Docker" for clarity |
| 18 | + # uses: docker/setup-buildx-action@v2 |
| 19 | + # |
| 20 | + # - name: Run make setup |
| 21 | + # run: make setup |
| 22 | + # |
| 23 | + # - name: Run tests |
| 24 | + # run: make rav_tests |
| 25 | + # |
| 26 | + # - name: Tear down containers |
| 27 | + # if: always() |
| 28 | + # run: make down |
| 29 | + |
| 30 | + build_docker_images: |
| 31 | + runs-on: ubuntu-latest |
| 32 | + # needs: [] # Runs in parallel with 'test'. Add 'test' here if it should run after 'test' job. |
| 33 | + steps: |
| 34 | + - name: Checkout code |
| 35 | + uses: actions/checkout@v3 |
| 36 | + |
| 37 | + - name: Set up QEMU # Useful for multi-platform builds, often used with Buildx |
| 38 | + uses: docker/setup-qemu-action@v2 |
| 39 | + |
| 40 | + - name: Set up Docker Buildx |
| 41 | + uses: docker/setup-buildx-action@v2 |
| 42 | + |
| 43 | + # Taken from containers.yml, probably not needed |
| 44 | + # for building images |
| 45 | + # - name: Login to GitHub Container Registry |
| 46 | + # uses: docker/login-action@v3 |
| 47 | + # with: |
| 48 | + # registry: ghcr.io |
| 49 | + # username: ${{ github.actor }} |
| 50 | + # password: ${{ secrets.GITHUB_TOKEN }} |
| 51 | + |
| 52 | + - name: Build indexer-rs image |
| 53 | + uses: docker/build-push-action@v5 |
| 54 | + with: |
| 55 | + context: ./contrib/indexer-service |
| 56 | + file: ./contrib/indexer-service/Dockerfile |
| 57 | + push: false |
| 58 | + tags: graphtally/indexer-service:latest |
| 59 | + |
| 60 | + - name: Build tap-agent image |
| 61 | + uses: docker/build-push-action@v5 |
| 62 | + with: |
| 63 | + context: ./contrib/tap-agent |
| 64 | + file: ./contrib/tap-agent/Dockerfile |
| 65 | + push: false |
| 66 | + tags: graphtally/tap-agent:latest |
0 commit comments