56 lines
1.8 KiB
YAML
56 lines
1.8 KiB
YAML
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
|
|
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 |