Skip to content

Commit

Permalink
feat(tests): Add WOKWI test action
Browse files Browse the repository at this point in the history
  • Loading branch information
tomassebestik committed Jul 19, 2024
1 parent 681415e commit de331de
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
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'
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'

0 comments on commit de331de

Please sign in to comment.