Support embedded_io_async::ReadReady trait #81
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: [pull_request] | |
name: IntegrationTests | |
jobs: | |
integration_tests_mosquitto: | |
name: Integration tests with mosquitto | |
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 Mosquitto | |
run: | | |
sudo apt-get install mosquitto | |
sudo service mosquitto stop | |
mosquitto_passwd -U .ci/mqtt_pass.txt | |
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 |