shorten ci runtime
This commit is contained in:
parent
c1f21880f3
commit
457e4406af
1 changed files with 3 additions and 17 deletions
20
.github/workflows/test.yml
vendored
20
.github/workflows/test.yml
vendored
|
@ -120,26 +120,12 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
docker-compose run archivebox init
|
docker-compose run archivebox init
|
||||||
docker-compose up -d
|
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'
|
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
|
- name: Check added urls show up in index
|
||||||
run: |
|
run: |
|
||||||
docker-compose run archivebox add 'http://example.com/#test_docker' --index-only
|
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'
|
curl --silent --location 'http://127.0.0.1:8000' | grep 'http://example.com/#test_docker'
|
||||||
|
docker-compose down || true
|
||||||
- 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
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue