-
-
Notifications
You must be signed in to change notification settings - Fork 10
53 lines (48 loc) · 1.51 KB
/
main.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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@v2
- name: Set up Python
uses: actions/setup-python@v2
- 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@v2
# - name: Set up Python
# uses: actions/setup-python@v2
# - 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@v2
- name: Set up Python
uses: actions/setup-python@v2
- 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@v2
- name: Run clang-format style check for C/C++ programs.
uses: jidicula/[email protected]
with:
clang-format-version: '11'
check-path: src