Skip to content

Wokwi CI Test

Wokwi CI Test #24

Workflow file for this run

name: Wokwi CI Test
on:
push:
pull_request:
branches:
- main
schedule:
- cron: '0 12 * * *'
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
test:
- name: oled-esp32
path: board-ssd1306/oled-esp32
scenario: ssd1306.test.yaml
- name: dht22-uno
path: wokwi-dht22/dht22-uno
scenario: dht22.test.yaml
- name: dht22-esp32
path: wokwi-dht22/dht22-esp32
scenario: dht22.test.yaml
- name: dht22-pico
path: wokwi-dht22/dht22-pico
scenario: dht22.test.yaml
- name: dht22-stm32
path: wokwi-dht22/dht22-stm32
scenario: dht22.test.yaml
- name: ili9341-uno
path: wokwi-ili9341/lcd-uno
scenario: ili9341.test.yaml
- name: microsd-card-esp32
path: wokwi-microsd-card/sd-esp32
scenario: sd.test.yaml
- name: slide-potentiometer-uno
path: wokwi-slide-potentiometer/pot-uno
scenario: slide-potentiometer.test.yaml
- name: slide-potentiometer-esp32
path: wokwi-slide-potentiometer/pot-esp32
scenario: slide-potentiometer.test.yaml
steps:
- uses: actions/checkout@v4
- name: Install PlatformIO
run: |
python -m pip install --upgrade pip
pip install platformio
- name: Build with PlatformIO
working-directory: ${{ matrix.test.path }}
run: pio run
- name: Run Wokwi CI Server
uses: wokwi/wokwi-ci-server-action@v1
- name: Test with Wokwi
uses: wokwi/wokwi-ci-action@v1
with:
token: ${{ secrets.WOKWI_CLI_TOKEN }}
path: ${{ matrix.test.path }}
timeout: 10000
scenario: ${{ matrix.test.scenario }}
serial_log_file: serial-${{ matrix.test.name }}.log