Prepare client for future v3 support (#11)
* Prepare client for future v3 support * Add hiveMQ
This commit is contained in:
33
.github/workflows/integration_tests.yaml
vendored
33
.github/workflows/integration_tests.yaml
vendored
@@ -3,8 +3,8 @@ on: [pull_request]
|
||||
name: IntegrationTests
|
||||
|
||||
jobs:
|
||||
integration_tests:
|
||||
name: Integration tests
|
||||
integration_tests_mosquitto:
|
||||
name: Integration tests with mosquitto
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Git checkout
|
||||
@@ -23,5 +23,34 @@ jobs:
|
||||
sudo apt-get install mosquitto
|
||||
mosquitto -c .ci/mosquitto.conf -d
|
||||
|
||||
- name: Run integration-tests tests
|
||||
run: RUST_LOG=trace cargo test integration
|
||||
|
||||
integration_tests_hive:
|
||||
name: Integration tests with HiveMQ
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Git checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Install stable toolchain
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: stable
|
||||
|
||||
- name: Build embedded
|
||||
run: cargo build --target thumbv7em-none-eabihf --features "no_std" --no-default-features
|
||||
|
||||
- name: Start HiveMQ
|
||||
run: |
|
||||
curl -LO https://github.com/hivemq/hivemq-community-edition/releases/download/2021.3/hivemq-ce-2021.3.zip
|
||||
unzip hivemq-ce-2021.3.zip
|
||||
curl -LO https://www.hivemq.com/releases/extensions/hivemq-file-rbac-extension-4.4.0.zip
|
||||
unzip hivemq-file-rbac-extension-4.4.0.zip
|
||||
mv hivemq-file-rbac-extension hivemq-ce-2021.3/extensions
|
||||
cp .ci/hive_cred.xml hivemq-ce-2021.3/extensions/hivemq-file-rbac-extension/credentials.xml
|
||||
cp .ci/hive_extension_config.xml hivemq-ce-2021.3/extensions/hivemq-file-rbac-extension/extension-config.xml
|
||||
hivemq-ce-2021.3/bin/run.sh &
|
||||
|
||||
- name: Run integration-tests tests
|
||||
run: RUST_LOG=trace cargo test integration
|
||||
Reference in New Issue
Block a user