Skip to content

Commit 2ab66db

Browse files
committed
github-test failed on native : try an other option...
1 parent 9564a20 commit 2ab66db

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

.github/workflows/pio-tests.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,8 @@ jobs:
2020
python-version: "3.10"
2121

2222
- name: Install PlatformIO Core
23-
run: |
24-
pip install -U platformio
23+
run: pip install -U platformio
2524

26-
- name: Run PlatformIO Tests
25+
- name: Run PlatformIO Tests (ESP32)
2726
run: |
28-
pio test -e test
27+
pio test -e test --without-upload

platformio.ini

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,17 @@ test_ignore =
3030
description = esp32 c++ V17 Project for manage settings
3131

3232
[env:test]
33-
platform = native
34-
build_flags = -DUNIT_TEST
33+
platform = espressif32
34+
board = nodemcu-32s
35+
framework = arduino
36+
build_unflags = -std=gnu++11
37+
build_flags =
38+
-Wno-deprecated-declarations
39+
-std=gnu++17
40+
-DUNIT_TEST
3541
lib_deps =
42+
bblanchon/ArduinoJson@^7.4.1
3643
throwtheswitch/Unity@^2.6.0
44+
3745
test_ignore =
3846
src/main.cpp

0 commit comments

Comments
 (0)