Fix CA #57
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and test embeded | |
on: | |
workflow_dispatch: | |
push: | |
jobs: | |
build-and-test-embeded: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cache/pip | |
~/.platformio/.cache | |
key: ${{ runner.os }}-pio | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.9' | |
- name: Install PlatformIO Core | |
run: pip install --upgrade platformio | |
- name: Build PlatformIO Project | |
run: pio test -e embeded_env --without-uploading --without-testing | |
- name: move firmware extention elf to root | |
run: mv .pio/build/embeded_env/firmware.elf firmware.elf | |
- name: Test Embeded | |
uses: wokwi/wokwi-ci-action@v1 | |
with: | |
token: ${{ secrets.WOKWI_CLI_TOKEN }} | |
timeout: 180000 | |
fail_text: FAILED | |
scenario: 'senario.test.yaml' | |
- name: delete firmware.elf | |
run: rm firmware.elf |