Skip to content

Commit 2770d8a

Browse files
committed
bring in test runner, attempt to run!
1 parent af886db commit 2770d8a

File tree

2 files changed

+15
-18
lines changed

2 files changed

+15
-18
lines changed

.github/workflows/run-offline-tests.yml

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,12 @@
33
# SPDX-License-Identifier: MIT
44
name: WipperSnapper Tests for Offline Mode
55
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
1412

1513
jobs:
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:

src/components/statusLED/Wippersnapper_StatusLED.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)