Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# @file ci.yml
# @brief Used to perform code format checking and Sonarcloud analysis
# @file check-code-format.yml
# @brief Used to perform code format checking
#
# Copyright joelguittet and mender-mcu-client contributors
#
Expand All @@ -15,35 +15,49 @@
# See the License for the specific language governing permissions and
# limitations under the License.

name: ci
name: check-code-format

on:
push:
branches:
- '**'
pull_request:
types: [opened, synchronize, reopened]
schedule:
- cron: '0 0 1 * *'

jobs:
check:
check-code-format:
name: Check code format
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
# Install tools
- name: Install tools
run: |
sudo apt-get install clang-format pcregrep

# Checkout mender-esp32-zephyr-example
- name: Checkout mender-esp32-zephyr-example
uses: actions/checkout@v5
with:
path: mender-esp32-zephyr-example

# Check code format
- name: Check headers
if: ${{ always() }}
working-directory: mender-esp32-zephyr-example
run: |
./.github/workflows/check_headers.sh
- name: Check include guards
if: ${{ always() }}
working-directory: mender-esp32-zephyr-example
run: |
./.github/workflows/check_include_guards.sh
- name: Check equivalence tests
if: ${{ always() }}
working-directory: mender-esp32-zephyr-example
run: |
./.github/workflows/check_equivalence_tests.sh
- name: Check code format
if: ${{ always() }}
working-directory: mender-esp32-zephyr-example
run: |
./.github/workflows/check_code_format.sh
1 change: 1 addition & 0 deletions .sonarcloud.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sonar.exclusions=components/msgpack-c/include/**/*
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
# mender-esp32-example

[![CI Badge](https://github.com/joelguittet/mender-esp32-example/workflows/ci/badge.svg)](https://github.com/joelguittet/mender-esp32-example/actions)
[![Workflow check-code-format Badge](https://github.com/joelguittet/mender-esp32-example/workflows/check-code-format/badge.svg)](https://github.com/joelguittet/mender-esp32-example/actions)
[![Issues Badge](https://img.shields.io/github/issues/joelguittet/mender-esp32-example)](https://github.com/joelguittet/mender-esp32-example/issues)
[![License Badge](https://img.shields.io/github/license/joelguittet/mender-esp32-example)](https://github.com/joelguittet/mender-esp32-example/blob/master/LICENSE)

[![Bugs](https://sonarcloud.io/api/project_badges/measure?project=joelguittet_mender-esp32-zephyr-example&metric=bugs)](https://sonarcloud.io/dashboard?id=joelguittet_mender-esp32-zephyr-example)
[![Code Smells](https://sonarcloud.io/api/project_badges/measure?project=joelguittet_mender-esp32-zephyr-example&metric=code_smells)](https://sonarcloud.io/dashboard?id=joelguittet_mender-esp32-zephyr-example)
[![Duplicated Lines (%)](https://sonarcloud.io/api/project_badges/measure?project=joelguittet_mender-esp32-zephyr-example&metric=duplicated_lines_density)](https://sonarcloud.io/dashboard?id=joelguittet_mender-esp32-zephyr-example)
[![Lines of Code](https://sonarcloud.io/api/project_badges/measure?project=joelguittet_mender-esp32-zephyr-example&metric=ncloc)](https://sonarcloud.io/dashboard?id=joelguittet_mender-esp32-zephyr-example)
[![Vulnerabilities](https://sonarcloud.io/api/project_badges/measure?project=joelguittet_mender-esp32-zephyr-example&metric=vulnerabilities)](https://sonarcloud.io/dashboard?id=joelguittet_mender-esp32-zephyr-example)

[![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=joelguittet_mender-esp32-zephyr-example&metric=sqale_rating)](https://sonarcloud.io/dashboard?id=joelguittet_mender-esp32-zephyr-example)
[![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=joelguittet_mender-esp32-zephyr-example&metric=reliability_rating)](https://sonarcloud.io/dashboard?id=joelguittet_mender-esp32-zephyr-example)
[![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=joelguittet_mender-esp32-zephyr-example&metric=security_rating)](https://sonarcloud.io/dashboard?id=joelguittet_mender-esp32-zephyr-example)

[Mender MCU client](https://github.com/joelguittet/mender-mcu-client) is an open source over-the-air (OTA) library updater for MCU devices. This demonstration project runs on ESP32 hardware.


Expand Down