Skip to content

Commit

Permalink
FIX GitAction mosquitto service volume paths
Browse files Browse the repository at this point in the history
  • Loading branch information
fgalan committed Jan 13, 2025
1 parent a50b2c9 commit d62187f
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions .github/workflows/functional.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ jobs:
ports:
- 27017:27017

mosquitto:
# Needed by MQTT notification tests
image: eclipse-mosquitto:1.6.15
ports:
- 1883:1883
volumes:
- ${{ github.workspace}}/test/functionalTest/mosquitto_conf_for_tests.conf:/mosquitto/config/mosquitto.conf
- ${{ github.workspace}}/test/functionalTest/mosquitto_passwd:/mosquitto/config/passwd
#mosquitto:
# # Needed by MQTT notification tests
# image: eclipse-mosquitto:1.6.15
# ports:
# - 1883:1883
# volumes:
# - ${{ github.workspace}}/test/functionalTest/mosquitto_conf_for_tests.conf:/mosquitto/config/mosquitto.conf
# - ${{ github.workspace}}/test/functionalTest/mosquitto_passwd:/mosquitto/config/passwd

mosquitto-extra:
# Needed by MQTT notification tests (multi broker)
Expand All @@ -61,6 +61,15 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Start Mosquitto
uses: namoshek/mosquitto-github-action@v1
with:
version: '1.6'
ports: '1883:1883'
config: ${{ github.workspace }}/test/functionalTest/mosquitto_conf_for_tests.conf
password-file: ${{ github.workspace}}/test/functionalTest/mosquitto_passwd:/mosquitto/config/passwd
container-name: 'mqtt'

- name: Run functional test
run: |
docker run --network host -t --rm -e REPO_ACCESS_TOKEN=${{ secrets.REPO_ACCESS_TOKEN }} ${{ matrix.payload.range }} -v $(pwd):/opt/fiware-orion ${{ env.TEST_IMAGE_NAME }} build -miqts functional

0 comments on commit d62187f

Please sign in to comment.