Skip to content

Merge branch 'develop' into main #12

Merge branch 'develop' into main

Merge branch 'develop' into main #12

Workflow file for this run

name: make_tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main, develop ]
types: [ opened, edited, synchronize]
# types: [ opened, edited]
jobs:
native_tasks:
name: Native environment checks
runs-on: ubuntu-latest
container: italocjs/track_env:latest #update here if you change the base environment or anything in platformio.ini, make sure to build and upload image too!
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: |
/root/.platformio/.cache
key: ${{ runner.os }}-pio
- name: Native build
run: cd app/ && pio run -e native
- name: Native test
run: cd app/ && pio test -e native
esp32dev_tasks:
name: ESP32DEV environment checks
runs-on: ubuntu-latest
container: italocjs/track_env:latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: |
/root/.platformio/.cache
key: ${{ runner.os }}-pio
- name: esp32dev remote test
env:
PLATFORMIO_AUTH_TOKEN: ${{ secrets.PLATFORMIO_AUTH_TOKEN }}
ESP32: true
run: cd app/ && pio remote --agent raspberrypi test -e esp32dev --upload-port /dev/ttyUSB0
- name: esp32dev build and flash remote
env:
PLATFORMIO_AUTH_TOKEN: ${{ secrets.PLATFORMIO_AUTH_TOKEN }}
ESP32: true
run: cd app/ && pio remote --agent raspberrypi run -e esp32dev -t upload --upload-port /dev/ttyUSB0