Embedded
This commit is contained in:
11
.github/workflows/integration_tests.yaml
vendored
11
.github/workflows/integration_tests.yaml
vendored
@@ -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"
|
||||
5
.github/workflows/unit_tests.yaml
vendored
5
.github/workflows/unit_tests.yaml
vendored
@@ -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"
|
||||
Reference in New Issue
Block a user