Remove defaulted destructor #236
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test suite based on Wokwi CLI | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
paths: | |
- 'src/**' | |
- 'conf/**' | |
- 'include/**' | |
- 'test/**' | |
- 'platformio.ini' | |
- '.github/workflows/tests.yml' | |
concurrency: | |
group: ${{ github.head_ref || github.ref_name }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
continue-on-error: true | |
strategy: | |
matrix: | |
tests: | |
- test_mqtt | |
- test_logic | |
- test_savedconfig | |
- test_tasks | |
- test_chrono | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-tags: true | |
fetch-depth: 0 | |
- uses: actions/cache@v4 | |
with: | |
path: | | |
~/.cache/pip | |
~/.platformio/.cache | |
.pio/build_cache | |
~/.platformio/packages | |
key: ${{ runner.os }}-tests | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- name: Install PlatformIO Core | |
run: pip install --upgrade platformio | |
- name: Use secrets.hpp.example as base for the build | |
run: cp conf/secrets.hpp.example conf/secrets.hpp | |
- name: Build ${{ matrix.tests }} | |
run: pio test -e wokwi --without-testing --without-uploading -f ${{ matrix.tests }} | |
- name: Run ${{ matrix.tests }} with Wokwi CLI | |
id: wokwi-ci | |
uses: wokwi/wokwi-ci-action@v1 | |
with: | |
token: ${{ secrets.WOKWI_CLI_TOKEN }} | |
path: / # directory with wokwi.toml, relative to repo's root | |
timeout: 240000 | |
expect_text: 'Tests 0 Failures 0 Ignored' | |
fail_text: ':FAIL:' | |
serial_log_file: '${{ matrix.tests }}.log' | |
continue-on-error: true | |
- name: Upload test results | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ matrix.tests }} | |
path: ${{ matrix.tests }}.log | |
retention-days: 15 | |
- name: Check if Wokwi CLI failed | |
if: ${{ steps.wokwi-ci.outcome == 'failure' }} | |
run: exit 1 |