Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: feat(tests): Add WOKWI test action #4

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/wokwi-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Build and test WOKWI

on:
workflow_dispatch:
pull_request:

jobs:
build-and-test-wokwi:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Build Test Application with ESP-IDF
uses: espressif/esp-idf-ci-action@v1
with:
esp_idf_version: "latest" # latest is the default version
target: esp32
path: 'test_app'

- name: Test with Wokwi
uses: wokwi/wokwi-ci-action@v1
with:
token: ${{ secrets.WOKWI_CLI_TOKEN }}
expect_text: 'Mean'
7 changes: 7 additions & 0 deletions diagram.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"version": 1,
"author": "Espressif",
"editor": "wokwi",
"parts": [],
"connections": []
}
4 changes: 4 additions & 0 deletions wokwi.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[wokwi]
version = 1
firmware = 'test_app/build/flasher_args.json'
elf = 'test_app/build/example_test_app.elf'
Loading