From 8431af686741d7e089cc9b46836417a246adfc7e Mon Sep 17 00:00:00 2001 From: Bert Melis Date: Mon, 15 Jul 2024 13:44:25 +0200 Subject: [PATCH] use mosquitto as service --- .github/workflows/test_platformio.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test_platformio.yml b/.github/workflows/test_platformio.yml index 9197209..633e5fa 100644 --- a/.github/workflows/test_platformio.yml +++ b/.github/workflows/test_platformio.yml @@ -6,15 +6,17 @@ jobs: build: runs-on: ubuntu-latest container: ghcr.io/bertmelis/pio-test-container + + services: + mosquitto: + image: eclipse-mosquitto + container_name: mosquitto + ports: + - "1883:1883" + volumes: + - ${{ github.workspace }}/.github/etc/mosquitto.conf:/mosquitto/config/mosquitto.conf steps: - uses: actions/checkout@v4 - - name: Start Mosquitto - uses: namoshek/mosquitto-github-action@v1 - with: - version: '2.0' - ports: '1883:1883' - config: ${{ github.workspace }}/.github/etc/mosquitto.conf - container-name: 'mosquitto' - name: Test run: | pio test -e native -v \ No newline at end of file