@@ -478,16 +478,16 @@ jobs:
478478 uses: actions/checkout@v4
479479 - name: 🛠️ Set up PlatformIO CLI project
480480 run: |
481- mkdir ${{ github.workspace }} /build
481+ mkdir \$ {{ github.workspace }} /build
482482 pio project init -d build -b nucleo_f401re
483- cd ${{ github.workspace }} /build
483+ cd \$ {{ github.workspace }} /build
484484 echo "debug_tool = stlink" >> platformio.ini
485- cp ${{ github.workspace }} /arduino/blink_led/* ${{ github.workspace }} /build/src || true
486- mv ${{ github.workspace }} /build/src/blink_led.ino ${{ github.workspace }} /build/src/blink_led.cpp
487- sed -i '1i#include "Arduino.h"' ${{ github.workspace }} /build/src/blink_led.cpp
485+ cp \$ {{ github.workspace }} /arduino/blink_led/* \$ {{ github.workspace }} /build/src || true
486+ mv \$ {{ github.workspace }} /build/src/blink_led.ino \$ {{ github.workspace }} /build/src/blink_led.cpp
487+ sed -i '1i#include "Arduino.h"' \$ {{ github.workspace }} /build/src/blink_led.cpp
488488 - name: 🏗️ Build PlatformIO CLI project
489489 run: |
490- cd ${{ github.workspace }} /build
490+ cd \$ {{ github.workspace }} /build
491491 pio run
492492 unit_tests:
493493 name: 🧪 Unit tests
@@ -499,7 +499,7 @@ jobs:
499499 uses: actions/checkout@v4
500500 - name: 🧬 Run unit tests
501501 run: |
502- cd ${{ github.workspace }} /test/arduino/blink_led/unit
502+ cd \$ {{ github.workspace }} /test/arduino/blink_led/unit
503503 make
504504` }
505505 title = " .github/workflows/arduino_blink_led_check.yaml"
@@ -528,20 +528,20 @@ Añadimos un job adicional a la GitHub Action anterior:
528528 uses: actions/checkout@v4
529529 - name: 🛠️ Set up PlatformIO CLI project
530530 run: |
531- mkdir ${{ github.workspace }} /build
531+ mkdir \$ {{ github.workspace }} /build
532532 pio project init -d build -b nucleo_f401re
533- cd ${{ github.workspace }} /build
533+ cd \$ {{ github.workspace }} /build
534534 echo "debug_tool = stlink" >> platformio.ini
535- cp ${{ github.workspace }} /arduino/blink_led/* ${{ github.workspace }} /build/src || true
536- mv ${{ github.workspace }} /build/src/blink_led.ino ${{ github.workspace }} /build/src/blink_led.cpp
537- sed -i '1i#include "Arduino.h"' ${{ github.workspace }} /build/src/blink_led.cpp
535+ cp \$ {{ github.workspace }} /arduino/blink_led/* \$ {{ github.workspace }} /build/src || true
536+ mv \$ {{ github.workspace }} /build/src/blink_led.ino \$ {{ github.workspace }} /build/src/blink_led.cpp
537+ sed -i '1i#include "Arduino.h"' \$ {{ github.workspace }} /build/src/blink_led.cpp
538538 - name: 🏗️ Build and upload PlatformIO CLI project
539539 run: |
540- cd ${{ github.workspace }} /build
540+ cd \$ {{ github.workspace }} /build
541541 pio run --target upload
542542 - name: 🧬 Run acceptance tests
543543 run: |
544- cd ${{ github.workspace }} /test/arduino/blink_led/acceptance
544+ cd \$ {{ github.workspace }} /test/arduino/blink_led/acceptance
545545 /usr/bin/python3 -m venv .venv
546546 source .venv/bin/activate
547547 pip install -r requirements.txt
@@ -710,7 +710,7 @@ jobs:
710710 uses: actions/checkout@v4
711711 - name: 🧬 Run unit tests
712712 run: |
713- cd ${{ github.workspace }} /test/stm32cube/blink_led/unit
713+ cd \$ {{ github.workspace }} /test/stm32cube/blink_led/unit
714714 make
715715` }
716716 title = " .github/workflows/stm32cube_blink_led_check.yaml"
@@ -734,7 +734,7 @@ Para los tests de aceptación reutilizaremos la parte de Arduino. Simplemente, e
734734 openocd -d2 -s ~/.platformio/packages/tool-openocd/openocd/scripts -f ~/.platformio/packages/tool-openocd/openocd/scripts/board/st_nucleo_f4.cfg -c "program \" $(readlink -f stm32cube/blink_led/Debug/*.elf | head -n1)\" verify reset; shutdown;"
735735 - name: 🧬 Run acceptance tests
736736 run: |
737- cd ${{ github.workspace }} /test/stm32cube/blink_led/acceptance
737+ cd \$ {{ github.workspace }} /test/stm32cube/blink_led/acceptance
738738 /usr/bin/python3 -m venv .venv
739739 source .venv/bin/activate
740740 pip install -r requirements.txt
0 commit comments