Skip to content

Commit

Permalink
das-node-55: build bazel in run-tests pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
levisingularity committed Oct 31, 2024
1 parent 8770cc5 commit bc4cb1d
Showing 1 changed file with 51 additions and 4 deletions.
55 changes: 51 additions & 4 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit bc4cb1d

Please sign in to comment.