Skip to content

Commit

Permalink
use mosquitto as service
Browse files Browse the repository at this point in the history
  • Loading branch information
bertmelis authored Jul 15, 2024
1 parent 5528357 commit 8431af6
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/test_platformio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 8431af6

Please sign in to comment.