This commit is contained in:
Ondrej Babec
2022-03-14 11:11:50 +01:00
parent 7e10c2b0a4
commit 4baceade72
47 changed files with 712 additions and 197 deletions

View File

@@ -3,18 +3,19 @@ on: [pull_request]
name: IntegrationTests
jobs:
unit_tests:
integration_tests:
name: Integration tests
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@v2
- name: Build
uses: actions-rs/toolchain@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- run: cargo build
- name: Build embedded
run: cargo build --target thumbv7em-none-eabihf --features "no_std" --no-default-features
- name: Start Mosquitto
run: |
@@ -22,4 +23,4 @@ jobs:
mosquitto -c .ci/mosquitto.conf -d
- name: Run integration tests
run: cargo test integration
run: RUST_LOG=trace cargo test integration --features "testing"

View File

@@ -8,7 +8,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- run: cargo test unit
- name: Run Unit tests
run: RUST_LOG=trace cargo test unit --features "testing"