Skip to content

Commit

Permalink
fixed mosquitto boot
Browse files Browse the repository at this point in the history
  • Loading branch information
ValMobBIllich committed Oct 31, 2024
1 parent 9eab279 commit 5be41f3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 33 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/lint-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,30 +50,26 @@ jobs:
name: Test
runs-on: ubuntu-latest

services:
mosquitto:
image: eclipse-mosquitto:2.0
volumes:
- mosquitto.conf:/mosquitto/config/mosquitto.conf
ports:
- 1883:1883

steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Install dependencies
run: |
cargo install cargo-tarpaulin
sudo apt-get update
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y curl cmake
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y netcat-openbsd cmake
- name: Show toolchain information
working-directory: ${{github.workspace}}
run: |
rustup toolchain list
cargo --version
- name: Start Mosquitto
run: |
cd ./tests/mosquitto
docker compose up -d
- name: Wait for MQTT broker to be available
run: |
until curl -s "localhost:1883" >/dev/null; do
until nc -z localhost 1883; do
echo "Waiting for MQTT broker..."
sleep 1
done
Expand Down
8 changes: 0 additions & 8 deletions .github/workflows/mosquitto.conf

This file was deleted.

7 changes: 0 additions & 7 deletions bin/integration_test

This file was deleted.

8 changes: 0 additions & 8 deletions mosquitto.conf

This file was deleted.

0 comments on commit 5be41f3

Please sign in to comment.