Rust MQTT
This commit is contained in:
25
.github/workflows/integration_tests.yaml
vendored
Normal file
25
.github/workflows/integration_tests.yaml
vendored
Normal 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
14
.github/workflows/unit_tests.yaml
vendored
Normal 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
|
||||
Reference in New Issue
Block a user