From 457e4406afa23ced5c800b5a54c38b4a5189081f Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Tue, 28 Jul 2020 08:44:06 -0400 Subject: [PATCH] shorten ci runtime --- .github/workflows/test.yml | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6bcb7aa6..ba9cb83a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -120,26 +120,12 @@ jobs: run: | docker-compose run archivebox init docker-compose up -d - sleep 4 + sleep 5 + curl --silent --location 'http://127.0.0.1:8000' | grep 'ArchiveBox' curl --silent --location 'http://127.0.0.1:8000/static/admin/js/jquery.init.js' | grep 'django.jQuery' - name: Check added urls show up in index run: | docker-compose run archivebox add 'http://example.com/#test_docker' --index-only curl --silent --location 'http://127.0.0.1:8000' | grep 'http://example.com/#test_docker' - - - name: Curl index with PUBLIC_INDEX=False - run: | - docker-compose run archivebox config --set PUBLIC_INDEX=False - docker-compose up -d || true - sleep 8 - curl --silent --location 'http://127.0.0.1:8000' | grep 'Log in' - docker-compose down - - - name: Curl index with PUBLIC_INDEX=True - run: | - docker-compose run archivebox config --set PUBLIC_INDEX=True - docker-compose up -d || true - sleep 8 - curl --silent --location 'http://127.0.0.1:8000' | grep 'Add Links' - docker-compose down + docker-compose down || true