File tree Expand file tree Collapse file tree 2 files changed +15
-18
lines changed Expand file tree Collapse file tree 2 files changed +15
-18
lines changed Original file line number Diff line number Diff line change 33# SPDX-License-Identifier: MIT
44name : WipperSnapper Tests for Offline Mode
55on :
6- release :
7- types : [published]
8- secrets :
9- GH_REPO_TOKEN :
10- required : true
11- permissions :
12- checks : write
13- pull-requests : write
6+ push :
7+ branches :
8+ - test-offline-release
9+ secrets :
10+ GH_REPO_TOKEN :
11+ required : true
1412
1513jobs :
1614 build :
@@ -26,22 +24,21 @@ jobs:
2624 run : |
2725 python -m pip install --upgrade pip
2826 pip install -r tests/requirements.txt
29- - name : Install Wokwi CI server
27+ - name : Install Wokwi CI Server
3028 uses : wokwi/wokwi-ci-server-action@v1
3129 - name : Install Wokwi CLI
3230 run : curl -L https://wokwi.com/ci/install.sh | sh
3331 - name : Install platformIO libraries
3432 run : pio lib install
35- - name : Build PlatformIO examples
36- run : pio ci --board= esp32dev
37- env :
38- PLATFORMIO_CI_SRC : ${{ matrix.example }}
39- - name : Test on Wokwi
33+ - name : Build PlatformIO Project
34+ run : platformio run --environment esp32dev
35+ - name : Move new build file to test folder
36+ run : cp .pio/build/esp32dev/firmware.elf tests/bin/offline/firmware.elf
37+ - name : Run Wokwi Tests
4038 run : pytest tests/${{ matrix.test }}.py --junitxml=report.xml -v
4139 env :
4240 WOKWI_CLI_TOKEN : ${{ secrets.WOKWI_CLI_TOKEN }}
43-
44- - name : Publish Test Results
41+ - name : Publish Wokwi Test Results
4542 uses : EnricoMi/publish-unit-test-result-action@v2
4643 if : always()
4744 with :
Original file line number Diff line number Diff line change @@ -81,8 +81,8 @@ void initStatusLED() {
8181#if defined(ARDUINO_ESP8266_ADAFRUIT_HUZZAH)
8282 analogWrite (STATUS_LED_PIN, 255 );
8383#elif defined(ARDUINO_ARCH_ESP32)
84- WsV2._pwmComponent ->attach (STATUS_LED_PIN, LEDC_BASE_FREQ, LEDC_TIMER_12_BIT);
85- WsV2._pwmComponent ->writeDutyCycle (STATUS_LED_PIN, 0 ); // turn OFF
84+ // WsV2._pwmComponent->attach(STATUS_LED_PIN, LEDC_BASE_FREQ, LEDC_TIMER_12_BIT);
85+ // WsV2._pwmComponent->writeDutyCycle(STATUS_LED_PIN, 0); // turn OFF
8686#elif defined(ARDUINO_RASPBERRY_PI_PICO_W)
8787 digitalWrite (STATUS_LED_PIN, 0 );
8888#else
You can’t perform that action at this time.
0 commit comments