-
-
Notifications
You must be signed in to change notification settings - Fork 16
38 lines (36 loc) · 1.46 KB
/
compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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@v2
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'