Update main.yml #40
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: PlatformIO CI | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
PlatformIO-Check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- name: Install PlatformIO | |
run: python -m pip install --upgrade pip platformio | |
- run: platformio check --fail-on-defect low --fail-on-defect medium --fail-on-defect high --skip-packages | |
# PlatformIO-CI: | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: Checkout code | |
# uses: actions/checkout@v4 | |
# - name: Set up Python | |
# uses: actions/setup-python@v5 | |
# - name: Install PlatformIO | |
# run: python -m pip install --upgrade pip platformio | |
# - run: platformio ci --lib="." --board=ttgo-lora32-v1 --board=d1_mini examples/basic_decode | |
PlatformIO-NativeTest: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- name: Install PlatformIO | |
run: python -m pip install --upgrade pip platformio | |
- run: platformio test -e native | |
formatting-check: | |
name: Formatting Check | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Run clang-format style check for C/C++ programs. | |
uses: jidicula/[email protected] | |
with: | |
clang-format-version: '14' | |
check-path: src |