From 1d71c9854f6b9bf1429be1ce3aa303d5a199c247 Mon Sep 17 00:00:00 2001 From: Wanjohi <71614375+wanjohiryan@users.noreply.github.com> Date: Sun, 19 Feb 2023 01:37:27 +0300 Subject: [PATCH] Update tests on pull request (#51) --- .github/workflows/pull-request.yaml | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/.github/workflows/pull-request.yaml b/.github/workflows/pull-request.yaml index 1a9a582..51093ae 100644 --- a/.github/workflows/pull-request.yaml +++ b/.github/workflows/pull-request.yaml @@ -1,21 +1,26 @@ name: Get screenshot of running container -#TODO: find a way to log errors from docker container onto github #TODO: find a way to test client and server before running the docker container, seems effective in catching any errors + on: pull_request: jobs: - build-docker-image: - name: Build docker image for testing + build-docker-nvidia: + name: Build nvidia Docker image runs-on: ubuntu-latest - steps: - name: Checkout repo uses: actions/checkout@v3 - - - name: Build docker image with docker compose - run: | - cp docker/nvidia/Dockerfile . - docker build -t qwantify:nvidia . \ No newline at end of file + name: Setup Docker Buildx + uses: docker/setup-buildx-action@v2 + - + name: Build Docker image + uses: docker/build-push-action@v4 + with: + context: ./ + file: docker/nvidia/Dockerfile + push: false + load: true + tags: warp:latest \ No newline at end of file