Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions .github/workflows/host-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ name: Tests

on:
push:
branches: [main]
branches:
- main
- feature/observable-callback-coverage
pull_request:
branches: [main]

Expand All @@ -22,19 +24,26 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
repository: Flowduino/ESPressio-Observable
ref: 3.0.1
path: deps/ESPressio-Observable
- name: Install PlatformIO
run: pip install platformio
- name: Compile BasicSecurePayload
run: >-
pio ci examples/BasicSecurePayload/BasicSecurePayload.ino
--board esp32dev
--lib .
--lib deps/ESPressio-Observable
--project-option="build_flags=-std=gnu++17"
--project-option="build_unflags=-std=gnu++11"
--project-option="build_unflags=-std=gnu++11 -fno-rtti"
- name: Compile MbedTLSAlgorithms
run: >-
pio ci examples/MbedTLSAlgorithms/MbedTLSAlgorithms.ino
--board esp32dev
--lib .
--lib deps/ESPressio-Observable
--project-option="build_flags=-std=gnu++17"
--project-option="build_unflags=-std=gnu++11"
--project-option="build_unflags=-std=gnu++11 -fno-rtti"
5 changes: 4 additions & 1 deletion tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ FetchContent_Declare(
GIT_TAG 3.0.1
GIT_SHALLOW TRUE
)
FetchContent_MakeAvailable(ESPressioObservable)
FetchContent_GetProperties(ESPressioObservable)
if(NOT espressioobservable_POPULATED)
FetchContent_Populate(ESPressioObservable)
endif()
set(ESPRESSIO_OBSERVABLE_INCLUDE ${espressioobservable_SOURCE_DIR}/src)

add_executable(Security test_security.cpp)
Expand Down
Loading