Merge branch 'develop' into main #12
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: 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 |