Skip to content

feat: gap and gatt refactored/improved due to embedded-infra changes #471

feat: gap and gatt refactored/improved due to embedded-infra changes

feat: gap and gatt refactored/improved due to embedded-infra changes #471

---
name: Linting & Formatting
on:
pull_request:
types: [opened, synchronize, reopened]
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true
permissions:
contents: read
jobs:
formatter:
name: Formatting
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
with:
persist-credentials: false
- uses: DoozyX/clang-format-lint-action@a83a8fb7d371f66da7dd1c4f33a193023899494b # v0.16
with:
clangFormatVersion: 15
inplace: true
extensions: "cpp,hpp"
- uses: reviewdog/action-suggester@8f83d27e749053b2029600995c115026a010408e # v1.6.0
with:
tool_name: clang-format
filter_mode: diff_context
linter:
name: Linter
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
with:
fetch-depth: 0
- name: Run Linter
uses: oxsecurity/megalinter@a7b1a3af0f3bd4de4db855969d27e224005665a6 # v7.1.0
env:
APPLY_FIXES: all
VALIDATE_ALL_CODEBASE: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload Linter artifacts
if: ${{ success() }} || ${{ failure() }}
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
with:
name: linter
path: |
megalinter-reports
- uses: reviewdog/action-suggester@8f83d27e749053b2029600995c115026a010408e # v1.6.0
with:
tool_name: MegaLinter
filter_mode: diff_context