diff --git a/.github/workflows/platformio.yaml b/.github/workflows/platformio_build.yaml similarity index 79% rename from .github/workflows/platformio.yaml rename to .github/workflows/platformio_build.yaml index 95b86ce..29ddd58 100644 --- a/.github/workflows/platformio.yaml +++ b/.github/workflows/platformio_build.yaml @@ -1,4 +1,4 @@ -name: PlatformIO CI +name: PlatformIO CI - Build for Arduino on: [push] @@ -20,10 +20,6 @@ jobs: - name: Install PlatformIO Core run: pip install --upgrade platformio - - name: Run tests on the native platform - working-directory: ./controller/tea_poor - run: pio test -e native - - name: Build PlatformIO Project for Arduino working-directory: ./controller/tea_poor run: pio run -e uno_r4_wifi diff --git a/.github/workflows/platformio_tests.yaml b/.github/workflows/platformio_tests.yaml new file mode 100644 index 0000000..299db5f --- /dev/null +++ b/.github/workflows/platformio_tests.yaml @@ -0,0 +1,25 @@ +name: PlatformIO CI - Unit Tests + +on: [push] + +jobs: + build: + 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: Run tests on the native platform + working-directory: ./controller/tea_poor + run: pio test -e native