-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (29 loc) · 925 Bytes
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: PlatformIO Unit Tests
on: [push, pull_request, workflow_call]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
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: |
python -m pip install --upgrade pip
pip install platformio
- name: Run Tests on the Desktop Environment
run: platformio test -e desktop
- name: Run Build Test for Arduino Uno
run: platformio run -e arduino_uno -t build_test.cpp
- name: Run Build Test for ESP32 Dev Module
run: platformio run -e esp32dev -t build_test.cpp