From 6612e10a6657c19cc205003fb1c398163240436e Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Wed, 24 Dec 2025 14:59:11 +0100 Subject: [PATCH] Replace mosquitto service containers with detached process startup (#1000) Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: thomasnordquist <7721625+thomasnordquist@users.noreply.github.com> --- .github/workflows/docker-browser.yml | 29 ++++++++++++++-------------- .github/workflows/tests.yml | 26 +++++++++++++------------ CI_CD.md | 27 +++++++++++++------------- 3 files changed, 43 insertions(+), 39 deletions(-) diff --git a/.github/workflows/docker-browser.yml b/.github/workflows/docker-browser.yml index cc326d9..3bc2b1e 100644 --- a/.github/workflows/docker-browser.yml +++ b/.github/workflows/docker-browser.yml @@ -34,24 +34,25 @@ jobs: TESTS_MQTT_BROKER_HOST: localhost TESTS_MQTT_BROKER_PORT: 1883 - services: - # MQTT broker for testing - mosquitto: - image: ghcr.io/thomasnordquist/mqtt-explorer-ui-tests:latest - ports: - - 1883:1883 - entrypoint: /bin/sh - args: ["-c", "mosquitto -c /etc/mosquitto/conf.d/default.conf"] - options: >- - --health-cmd "mosquitto_sub -t '$SYS/#' -C 1" - --health-interval 10s - --health-timeout 5s - --health-retries 5 - steps: - name: Checkout repository uses: actions/checkout@v4 + - name: Install and Start Mosquitto + run: | + sudo apt-get update + sudo apt-get install -y mosquitto mosquitto-clients + + # Create a minimal configuration file for testing + sudo tee /etc/mosquitto/conf.d/test.conf > /dev/null <- - --health-cmd "mosquitto_sub -t '$SYS/#' -C 1" - --health-interval 10s - --health-timeout 5s - --health-retries 5 steps: - uses: actions/checkout@v4 with: ref: ${{ github.event.pull_request.head.sha }} + - name: Install and Start Mosquitto + run: | + sudo apt-get update + sudo apt-get install -y mosquitto mosquitto-clients + + # Create a minimal configuration file for testing + sudo tee /etc/mosquitto/conf.d/test.conf > /dev/null <