Skip to content

update requirements #10

update requirements

update requirements #10

Workflow file for this run

name: Docker-Compose CI
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ main ]
paths:
- '.github/workflows/compose.yml'
- 'docker/docker-compose*.yml'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
compose-file: [docker-compose.yml]
steps:
- uses: actions/checkout@v4
- name: Build the docker-compose stack
run: docker-compose -f docker/${{ matrix.compose-file }} up -d
- name: Container Status
run: docker ps -a
- name: Let containers run for 60s
uses: juliangruber/sleep-action@v1
with:
time: 60s
- name: Check logs for weconnectmqtt
run: |
docker logs docker_weconnectmqtt_1
docker logs docker_weconnectmqtt_1 2>&1 | grep -q 'CRITICAL:weconnect-mqtt:There was a problem when authenticating with WeConnect: Your account for [email protected] was not found. Would you like to create a new account?\|CRITICAL:weconnect-mqtt:There was a problem when authenticating with WeConnect: Login throttled, probably too many wrong logins. You have to wait some minutes until a new login attempt is possible'
- name: Check logs for mosquitto
run: docker logs docker_mosquitto_1
- name: Container Status
run: docker ps -a
- name: Check running containers again
run: |
docker ps -a | grep -q 'Up.*docker_weconnectmqtt_1'
docker ps -a | grep -q 'Up.*docker_mosquitto_1'