Skip to content

Commit

Permalink
Merge pull request #1482 from petermm/wokwi-ci-service
Browse files Browse the repository at this point in the history
CI run simtest inside GH action

This executes the simtest simulator inside the github ci action, using (docker)
services, instead of using remote servers.

Should increase CI stability, and avoid usage of Wokwi.com server resources.

These changes are made under both the "Apache 2.0" and the "GNU Lesser General
Public License 2.1 or later" license terms (dual license).

SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later
  • Loading branch information
bettio committed Jan 21, 2025
2 parents 8e4efd6 + 80fa8c5 commit c8388d6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/esp32-simtest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ jobs:
runs-on: ubuntu-24.04
if: needs.cli_token.outputs.token_check == 'true'
container: espressif/idf:${{ matrix.idf-version }}
services:
wokwi-ci-server:
image: wokwi/wokwi-ci-server
ports:
- 3000:3000

strategy:
fail-fast: false
# focus on device diversity.
Expand Down Expand Up @@ -114,6 +120,10 @@ jobs:
idf.py -DSDKCONFIG_DEFAULTS='sdkconfig.ci.wokwi' set-target ${{matrix.esp-idf-target}}
idf.py build
- name: Configure Wokwi environment
run: |
echo "WOKWI_CLI_SERVER=ws://wokwi-ci-server:3000" >> $GITHUB_ENV
- name: Run ESP32-sim tests using Wokwi CI
working-directory: ./src/platforms/esp32/test/
env:
Expand Down

0 comments on commit c8388d6

Please sign in to comment.