mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-13 14:44:29 -04:00
better compose testing in github actions
This commit is contained in:
parent
a0a26946eb
commit
f0d4f9ca70
1 changed files with 19 additions and 10 deletions
29
.github/workflows/test.yml
vendored
29
.github/workflows/test.yml
vendored
|
@ -115,19 +115,28 @@ jobs:
|
||||||
docker run -v "$PWD"/data:/data archivebox list | grep -q "www.test-nginx-1.local" || { echo "The site 1 isn't in the list"; exit 1; }
|
docker run -v "$PWD"/data:/data archivebox list | grep -q "www.test-nginx-1.local" || { echo "The site 1 isn't in the list"; exit 1; }
|
||||||
docker run -v "$PWD"/data:/data archivebox list | grep -q "www.test-nginx-2.local" || { echo "The site 2 isn't in the list"; exit 1; }
|
docker run -v "$PWD"/data:/data archivebox list | grep -q "www.test-nginx-2.local" || { echo "The site 2 isn't in the list"; exit 1; }
|
||||||
|
|
||||||
|
|
||||||
- name: Start docker-compose stack
|
- name: Start docker-compose stack
|
||||||
run: |
|
run: |
|
||||||
|
docker-compose run archivebox init
|
||||||
docker-compose up -d
|
docker-compose up -d
|
||||||
|
sleep 4
|
||||||
|
curl --silent --location 'http://127.0.0.1:8000/static/admin/js/jquery.init.js' | grep 'django.jQuery'
|
||||||
|
|
||||||
- name: Curl to Django app
|
- name: Check added urls show up in index
|
||||||
run: |
|
|
||||||
sleep 8
|
|
||||||
curl --silent --location 'http://127.0.0.1:8000' | grep 'ArchiveBox Admin'
|
|
||||||
docker-compose run archivebox config --set PUBLIC_INDEX=True
|
|
||||||
docker-compose run archivebox add 'http://example.com/#test_docker' --index-only
|
docker-compose run archivebox add 'http://example.com/#test_docker' --index-only
|
||||||
docker-compose stop archivebox
|
|
||||||
docker-compose up -d
|
|
||||||
sleep 8
|
|
||||||
curl --silent --location 'http://127.0.0.1:8000' | grep 'Add Links'
|
|
||||||
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
|
|
||||||
|
- name: Curl index with PUBLIC_INDEX=False
|
||||||
|
run: |
|
||||||
|
docker-compose run archivebox config --set PUBLIC_INDEX=False
|
||||||
|
docker-compose restart
|
||||||
|
sleep 4
|
||||||
|
curl --silent --location 'http://127.0.0.1:8000' | grep 'ArchiveBox Admin'
|
||||||
|
|
||||||
|
- name: Curl index with PUBLIC_INDEX=True
|
||||||
|
run: |
|
||||||
|
docker-compose run archivebox config --set PUBLIC_INDEX=True
|
||||||
|
docker-compose restart
|
||||||
|
sleep 4
|
||||||
|
curl --silent --location 'http://127.0.0.1:8000' | grep 'Add Links'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue