diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 61a1393..c0978f8 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -12,20 +12,67 @@ on: workflow_dispatch: jobs: + build-bazel: + runs-on: ubuntu-22.04 + steps: + - name: Checkout repository code + uses: actions/checkout@v4 + + - name: Build docker image + run: make cpp-image + + - name: Login to DockerHub + if: success() + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + + - name: Push image to repository + run: |- + docker tag das-node-builder:latest ghcr.io/das-node-builder:${{ github.sha }} + docker push ghcr.io/das-node-builder:${{ github.sha }} + cpp-tests: runs-on: ubuntu-22.04 + needs: build-bazel steps: - - name: Checkout + - name: Checkout repository code uses: actions/checkout@v4 - - name: Running tests + - name: Login to DockerHub + if: success() + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + + - name: Pull docker image from registry + run: |- + docker pull ghcr.io/das-node-builder:${{ github.sha }} + docker tag ghcr.io/das-node-builder:${{ github.sha }} das-node-builder:latest + + - name: Run cpp tests run: make cpp-test wheel-test: runs-on: ubuntu-22.04 + needs: build-bazel steps: - - name: Checkout + - name: Checkout repository code uses: actions/checkout@v4 - - name: Running tests + - name: Login to DockerHub + if: success() + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + + - name: Pull docker image from registry + run: |- + docker pull ghcr.io/das-node-builder:${{ github.sha }} + docker tag ghcr.io/das-node-builder:${{ github.sha }} das-node-builder:latest + + - name: Run python tests run: make wheeler-test