From baffb5fc811ee96d4ded2a3c6bf4e3c920984d33 Mon Sep 17 00:00:00 2001 From: Ben Busby Date: Mon, 22 Nov 2021 00:34:48 -0700 Subject: [PATCH] Simplify docker tests Only the healthcheck is really necessary for the workflow's purpose. Running the full test suite is redundant. --- .github/workflows/docker_tests.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/docker_tests.yml b/.github/workflows/docker_tests.yml index 3624bbb..89fe3bd 100644 --- a/.github/workflows/docker_tests.yml +++ b/.github/workflows/docker_tests.yml @@ -11,9 +11,6 @@ jobs: - name: build and test run: | docker build --tag whoogle-search:test . - TEST_CONTAINER=$(docker run --entrypoint=/bin/bash --detach whoogle-search:test) - docker cp test "$TEST_CONTAINER":/whoogle/test - docker exec "$TEST_CONTAINER" ./run test - docker exec --detach "$TEST_CONTAINER" ./run - sleep 10 - docker exec "$TEST_CONTAINER" curl -f http://localhost:5000/healthz || exit 1 + docker run --publish 5000:5000 --detach --name whoogle-search whoogle-search:test + sleep 15 + docker exec whoogle-search curl -f http://localhost:5000/healthz || exit 1