ci: add simple github action for building image, running crawl, verifying zim exists

This commit is contained in:
Ilya Kreymer 2020-11-10 03:33:21 +00:00
parent 6b5dbd20cb
commit 88a280bc58
2 changed files with 20 additions and 1 deletions

19
.github/workflows/ci.yaml vendored Normal file
View file

@ -0,0 +1,19 @@
name: CI
on: [push, pull_request]
jobs:
integration-tests:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: build image
run: docker build -t openzim/zimit:dev .
- name: run crawl
run: docker run -v $PWD/output:/output openzim/zimit:dev zimit --url https://isago.ml/ --name isago --zim-file isago.zim
- name: ensure zim exists
run: stat ./output/isago.zim