Rust MQTT

This commit is contained in:
Ondrej Babec
2022-03-12 15:56:37 +01:00
parent c8ee05821a
commit d993457add
77 changed files with 1010 additions and 1661 deletions

View File

@@ -0,0 +1,25 @@
on: [pull_request]
name: IntegrationTests
jobs:
unit_tests:
name: Integration tests
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@v2
- name: Build
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- run: cargo build
- name: Start Mosquitto
run: |
sudo apt-get install mosquitto
mosquitto -c .ci/mosquitto.conf -d
- name: Run integration tests
run: cargo test integration

14
.github/workflows/unit_tests.yaml vendored Normal file
View File

@@ -0,0 +1,14 @@
on: [pull_request]
name: UnitTests
jobs:
unit_tests:
name: Unit tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- run: cargo test unit