From bf9bb9ab86aab9e1519c459a8538a481b3169fa2 Mon Sep 17 00:00:00 2001 From: Charles-Edouard de la Vergne Date: Mon, 13 Nov 2023 15:40:04 +0100 Subject: [PATCH] Coding style --- .github/workflows/coding_style_checks.yml | 24 +++++++++++++++++++ .github/workflows/lint-workflow.yml | 28 ----------------------- 2 files changed, 24 insertions(+), 28 deletions(-) create mode 100644 .github/workflows/coding_style_checks.yml delete mode 100644 .github/workflows/lint-workflow.yml diff --git a/.github/workflows/coding_style_checks.yml b/.github/workflows/coding_style_checks.yml new file mode 100644 index 0000000..1846f77 --- /dev/null +++ b/.github/workflows/coding_style_checks.yml @@ -0,0 +1,24 @@ +name: Run coding style check through reusable workflow + +# This workflow will run linting checks to ensure a level of uniformization among all Ledger applications. +# +# The presence of this workflow is mandatory as a minimal level of linting is required. +# You are however free to modify the content of the .clang-format file and thus the coding style of your application. +# We simply ask you to not diverge too much from the linting of the Boilerplate application. + +on: + workflow_dispatch: + push: + branches: + - master + - develop + pull_request: + +jobs: + check_linting: + name: Check linting using the reusable workflow + uses: LedgerHQ/ledger-app-workflows/.github/workflows/reusable_lint.yml@v1 + with: + source: './src' + extensions: 'h,c' + version: 11 diff --git a/.github/workflows/lint-workflow.yml b/.github/workflows/lint-workflow.yml deleted file mode 100644 index 2c63835..0000000 --- a/.github/workflows/lint-workflow.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: Code style check - -on: - push: - branches: - - master - - develop - pull_request: - branches: - - master - - develop - -jobs: - job_lint: - name: Lint - runs-on: ubuntu-latest - - steps: - - name: Clone - uses: actions/checkout@v3 - - - name: Lint - uses: DoozyX/clang-format-lint-action@v0.11 - with: - source: './src' - exclude: './src/glyphs.h ./src/glyphs.c' - extensions: 'h,c' - clangFormatVersion: 11