Skip to content

experiment

experiment #11

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
uses: docker/build-push-action@v5
with:
context: .
push: false
load: true
tags: |
koreader/kosync:test
koreader/kosync:latest
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