Skip to content

test if it can cache #9

test if it can cache

test if it can cache #9

Workflow file for this run

name: Busted test suite
on: [push, pull_request]
jobs:
build-and-test:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build image
run: make build VERSION=test BUILD_COMMAND="docker buildx build --load" BUILD_EXTRA_ARGS="--cache-from=type=gha --cache-to=type=gha,mode=max"
- name: Run busted test suite
run: make test VERSION=test
- name: Verify production healthcheck
run: |
docker run -d --name kosync-test koreader/kosync:test
sleep 5
docker exec kosync-test /app/koreader-sync-server/scripts/healthcheck.sh