-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (41 loc) · 1.16 KB
/
lint.yml
File metadata and controls
44 lines (41 loc) · 1.16 KB
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
name: C++ Linter
on: [pull_request]
permissions:
contents: read
pull-requests: write
jobs:
cpp-linter:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: |
~/.cache/pip
~/.platformio/.cache
key: ${{ runner.os }}-pio
- uses: actions/setup-python@v5
with:
python-version: "3.9"
- name: Install PlatformIO Core
run: |
python -m pip install --upgrade pip
pip install platformio
- name: Build Compilation Database
run: platformio run -e esp32dev --target compiledb
- uses: cpp-linter/cpp-linter-action@main
id: linter
continue-on-error: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
# style: file
tidy-checks: ""
database: compile_commands.json
files-changed-only: true
no-lgtm: false
step-summary: true
file-annotations: true
tidy-review: true
format-review: true
thread-comments: ${{ github.event_name == 'pull_request' && 'update' }}