diff --git a/.github/workflows/build_check.yml b/.github/workflows/build_check.yml index 8e2f1ea..8b83945 100644 --- a/.github/workflows/build_check.yml +++ b/.github/workflows/build_check.yml @@ -16,13 +16,20 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v2 - - name: Set up Python - uses: actions/setup-python@v2 - - name: Install PlatformIO - run: python -m pip install --upgrade pip platformio - - name: Run PlatformIO CI - run: platformio run + 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 run - name: Upload artifacts uses: actions/upload-artifact@v2 with: @@ -70,3 +77,27 @@ jobs: with: name: Cppcheck Report path: output + + remote_testing: + name: Remote Testing + runs-on: ubuntu-latest + env: + PLATFORMIO_AUTH_TOKEN: ${{ secrets.PLATFORMIO_AUTH_TOKEN }} + steps: + - name: Checkout code + 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: list devices connected + run: pio remote device list + - name: run tests + run: pio remote test -v -r