Skip to content

Commit 1314205

Browse files
committed
add memory test to actions
1 parent 2bff509 commit 1314205

File tree

3 files changed

+7
-12
lines changed

3 files changed

+7
-12
lines changed

.github/workflows/cppcheck.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ jobs:
1010
- uses: actions/checkout@v4
1111
- name: Cppcheck
1212
run: |
13-
pio check --flags "--suppress=unusedFunction --inline-suppr" --skip-packages --fail-on-defect=low --fail-on-defect=medium --fail-on-defect=high
13+
pio check --fail-on-defect=medium --fail-on-defect=high --flags "--inline-suppr --enable=warning --enable=style --enable=performance --suppress=unusedFunction --suppress=preprocessorErrorDirective" --skip-packages

.github/workflows/cpplint.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
name: Cpplint
1+
name: cpplint
22

33
on: [push, pull_request]
44

55
jobs:
66
build:
7+
78
runs-on: ubuntu-latest
9+
810
steps:
911
- uses: actions/checkout@v4
1012
- name: Set up Python
@@ -13,6 +15,7 @@ jobs:
1315
python-version: '3.11'
1416
- name: Install dependencies
1517
run: |
18+
python -m pip install --upgrade pip
1619
pip install cpplint
1720
- name: Linting
1821
run: |

.github/workflows/test_platformio.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,10 @@ jobs:
66
build:
77

88
runs-on: ubuntu-latest
9+
container: ghcr.io/bertmelis/pio-test-container
910

1011
steps:
11-
- uses: actions/checkout@v3
12-
- name: Set up Python
13-
uses: actions/setup-python@v4
14-
with:
15-
python-version: '3.10'
16-
- name: Install dependencies
17-
run: |
18-
python -m pip install --upgrade pip
19-
pip install platformio
20-
sudo apt-get install lcov
12+
- uses: actions/checkout@v4
2113
- name: Test
2214
run: |
2315
pio test -e native -v

0 commit comments

Comments
 (0)