Skip to content

Docker Compose Test (Unifi) #1281

Docker Compose Test (Unifi)

Docker Compose Test (Unifi) #1281

name: "Docker Compose Test (Unifi)"
on:
pull_request:
branches: master
push:
branches: master
schedule:
- cron: "0 8 * * *"
env:
TARGET_SERVICE: unifi
TARGET_TIMEOUT: 60
jobs:
test:
runs-on: ubuntu-latest
steps:
-
name: "Git: Checkout"
uses: actions/checkout@v3
-
name: "Service: Setup"
run: |
cp .github/workflows/config/options.conf "${TARGET_SERVICE}/options.override.conf"
-
name: "Service: Start"
run: |
./compositions.sh up --labels NEVER ${TARGET_SERVICE}
-
name: "Service: Wait"
run: |
cd ${TARGET_SERVICE} ; cat .env
sleep ${TARGET_TIMEOUT}s
-
name: "Service: Test"
run: |
if ! ./compositions.sh check ${TARGET_SERVICE}; then
docker ps
cd ${TARGET_SERVICE} ; docker-compose logs
exit 1
fi