mirror of
https://github.com/ArchiveBox/ArchiveBox
synced 2024-11-22 20:23:12 +00:00
improve workflow names for clarity in PR status
This commit is contained in:
parent
6ac48d7c35
commit
8aee5c408a
6 changed files with 63 additions and 60 deletions
2
.github/workflows/debian.yml
vendored
2
.github/workflows/debian.yml
vendored
|
@ -1,4 +1,4 @@
|
||||||
name: Debian
|
name: Build Debian package
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
55
.github/workflows/docker.yml
vendored
55
.github/workflows/docker.yml
vendored
|
@ -1,4 +1,4 @@
|
||||||
name: Docker
|
name: Build Docker image
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
@ -13,59 +13,6 @@ env:
|
||||||
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
submodules: true
|
|
||||||
fetch-depth: 1
|
|
||||||
|
|
||||||
# TODO: as of 2020-11 this helper layer broke, upgrade and re-enable this once it's usable again
|
|
||||||
# - uses: satackey/action-docker-layer-caching@v0.0.8
|
|
||||||
|
|
||||||
- name: Build image
|
|
||||||
run: |
|
|
||||||
docker build . -t "$DOCKER_IMAGE"
|
|
||||||
|
|
||||||
- name: Init data dir
|
|
||||||
run: |
|
|
||||||
mkdir data
|
|
||||||
docker run -v "$PWD"/data:/data "$DOCKER_IMAGE" init
|
|
||||||
|
|
||||||
- name: Run test server
|
|
||||||
run: |
|
|
||||||
sudo bash -c 'echo "127.0.0.1 www.test-nginx-1.local www.test-nginx-2.local" >> /etc/hosts'
|
|
||||||
docker run --name www-nginx -p 80:80 -d nginx
|
|
||||||
|
|
||||||
- name: Add link
|
|
||||||
run: |
|
|
||||||
docker run -v "$PWD"/data:/data --network host "$DOCKER_IMAGE" add http://www.test-nginx-1.local
|
|
||||||
|
|
||||||
- name: Add stdin link
|
|
||||||
run: |
|
|
||||||
echo "http://www.test-nginx-2.local" | docker run -i --network host -v "$PWD"/data:/data "$DOCKER_IMAGE" add
|
|
||||||
|
|
||||||
- name: List links
|
|
||||||
run: |
|
|
||||||
docker run -v "$PWD"/data:/data "$DOCKER_IMAGE" 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 "$DOCKER_IMAGE" list | grep -q "www.test-nginx-2.local" || { echo "The site 2 isn't in the list"; exit 1; }
|
|
||||||
|
|
||||||
- name: Start docker-compose stack
|
|
||||||
run: |
|
|
||||||
docker-compose run archivebox init
|
|
||||||
docker-compose up -d
|
|
||||||
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 'window.django'
|
|
||||||
|
|
||||||
- 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'
|
|
||||||
docker-compose down || true
|
|
||||||
|
|
||||||
buildx:
|
buildx:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
2
.github/workflows/homebrew.yml
vendored
2
.github/workflows/homebrew.yml
vendored
|
@ -1,4 +1,4 @@
|
||||||
name: Homebrew
|
name: Build Homebrew package
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
2
.github/workflows/lint.yml
vendored
2
.github/workflows/lint.yml
vendored
|
@ -1,4 +1,4 @@
|
||||||
name: Lint
|
name: Run linters
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
2
.github/workflows/pip.yml
vendored
2
.github/workflows/pip.yml
vendored
|
@ -1,4 +1,4 @@
|
||||||
name: Pip
|
name: Build pip package
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
60
.github/workflows/test.yml
vendored
60
.github/workflows/test.yml
vendored
|
@ -1,8 +1,11 @@
|
||||||
name: 'Test'
|
name: Run tests
|
||||||
on: [push]
|
on: [push]
|
||||||
|
|
||||||
|
env:
|
||||||
|
DOCKER_IMAGE: archivebox-ci
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
pytest:
|
python_tests:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
|
@ -80,3 +83,56 @@ jobs:
|
||||||
- name: Test built package with pytest
|
- name: Test built package with pytest
|
||||||
run: |
|
run: |
|
||||||
python -m pytest -s
|
python -m pytest -s
|
||||||
|
|
||||||
|
docker_tests:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
submodules: true
|
||||||
|
fetch-depth: 1
|
||||||
|
|
||||||
|
# TODO: as of 2020-11 this helper layer broke, upgrade and re-enable this once it's usable again
|
||||||
|
# - uses: satackey/action-docker-layer-caching@v0.0.8
|
||||||
|
|
||||||
|
- name: Build image
|
||||||
|
run: |
|
||||||
|
docker build . -t "$DOCKER_IMAGE"
|
||||||
|
|
||||||
|
- name: Init data dir
|
||||||
|
run: |
|
||||||
|
mkdir data
|
||||||
|
docker run -v "$PWD"/data:/data "$DOCKER_IMAGE" init
|
||||||
|
|
||||||
|
- name: Run test server
|
||||||
|
run: |
|
||||||
|
sudo bash -c 'echo "127.0.0.1 www.test-nginx-1.local www.test-nginx-2.local" >> /etc/hosts'
|
||||||
|
docker run --name www-nginx -p 80:80 -d nginx
|
||||||
|
|
||||||
|
- name: Add link
|
||||||
|
run: |
|
||||||
|
docker run -v "$PWD"/data:/data --network host "$DOCKER_IMAGE" add http://www.test-nginx-1.local
|
||||||
|
|
||||||
|
- name: Add stdin link
|
||||||
|
run: |
|
||||||
|
echo "http://www.test-nginx-2.local" | docker run -i --network host -v "$PWD"/data:/data "$DOCKER_IMAGE" add
|
||||||
|
|
||||||
|
- name: List links
|
||||||
|
run: |
|
||||||
|
docker run -v "$PWD"/data:/data "$DOCKER_IMAGE" 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 "$DOCKER_IMAGE" list | grep -q "www.test-nginx-2.local" || { echo "The site 2 isn't in the list"; exit 1; }
|
||||||
|
|
||||||
|
- name: Start docker-compose stack
|
||||||
|
run: |
|
||||||
|
docker-compose run archivebox init
|
||||||
|
docker-compose up -d
|
||||||
|
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 'window.django'
|
||||||
|
|
||||||
|
- 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'
|
||||||
|
docker-compose down || true
|
||||||
|
|
Loading…
Reference in a new issue