Skip to content

Use the Wokwi Embedded Systems Simulator in your CI workflow

License

Notifications You must be signed in to change notification settings

SergioGasquez/wokwi-ci-action

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

wokwi-ci-action

GitHub action for using Wokwi Embedded Systems Simulator in your CI workflow.

Usage

Add the following step to your workflow:

- name: Test with Wokwi
  uses: wokwi/wokwi-ci-action@v1
  with:
    token: ${{ secrets.WOKWI_CLI_TOKEN }}
    timeout: 10000
    expect_text: 'Hello, world!'
    fail_text: 'Error'

You need to set the WOKWI_CLI_TOKEN secret in your repository settings. You can get the token from the your Wokwi account page.

Your repository needs to contain a wokwi.toml file that describes the simulation to run, and a diagram.json file that describes the components in the simulation and their connections. For more information, see the project config documentation.

Inputs

Name Description Default
token Wokwi CLI token
path Path to the project directory (where wokwi.toml is) /
timeout Timeout in milliseconds 10000
expect_text Text to expect in the serial output
fail_text Text that indicates a test failure

About

Use the Wokwi Embedded Systems Simulator in your CI workflow

Resources

License

Stars

Watchers

Forks

Packages

No packages published