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 3
3
# SPDX-License-Identifier: MIT
4
4
name : WipperSnapper Tests for Offline Mode
5
5
on :
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
14
12
15
13
jobs :
16
14
build :
@@ -26,22 +24,21 @@ jobs:
26
24
run : |
27
25
python -m pip install --upgrade pip
28
26
pip install -r tests/requirements.txt
29
- - name : Install Wokwi CI server
27
+ - name : Install Wokwi CI Server
30
28
uses : wokwi/wokwi-ci-server-action@v1
31
29
- name : Install Wokwi CLI
32
30
run : curl -L https://wokwi.com/ci/install.sh | sh
33
31
- name : Install platformIO libraries
34
32
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
40
38
run : pytest tests/${{ matrix.test }}.py --junitxml=report.xml -v
41
39
env :
42
40
WOKWI_CLI_TOKEN : ${{ secrets.WOKWI_CLI_TOKEN }}
43
-
44
- - name : Publish Test Results
41
+ - name : Publish Wokwi Test Results
45
42
uses : EnricoMi/publish-unit-test-result-action@v2
46
43
if : always()
47
44
with :
Original file line number Diff line number Diff line change @@ -81,8 +81,8 @@ void initStatusLED() {
81
81
#if defined(ARDUINO_ESP8266_ADAFRUIT_HUZZAH)
82
82
analogWrite (STATUS_LED_PIN, 255 );
83
83
#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
86
86
#elif defined(ARDUINO_RASPBERRY_PI_PICO_W)
87
87
digitalWrite (STATUS_LED_PIN, 0 );
88
88
#else
You can’t perform that action at this time.
0 commit comments