Skip to content

Commit

Permalink
Replace lint workflow with reusable one
Browse files Browse the repository at this point in the history
  • Loading branch information
bigspider committed Sep 9, 2024
1 parent eab72e8 commit da86091
Showing 1 changed file with 29 additions and 24 deletions.
53 changes: 29 additions & 24 deletions .github/workflows/lint-workflow.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,33 @@
name: Code style check
---
name: Code style check

on:
workflow_dispatch:
push:
branches:
- master
- develop
pull_request:
branches:
- master
- develop
# 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.

jobs:
job_lint:
name: Lint
runs-on: ubuntu-latest
on:
workflow_dispatch:
push:
branches:
- master
- main
- develop
pull_request:

steps:
- name: Clone
uses: actions/checkout@v2
jobs:
check_linting:
name: Check linting using the reusable workflow
uses: LedgerHQ/ledger-app-workflows/.github/workflows/reusable_lint.yml@v1
with:
source: './'
extensions: 'h,c'
version: 12

- name: Lint
uses: DoozyX/clang-format-lint-action@v0.12
with:
source: './src'
extensions: 'h,c'
clangFormatVersion: 12
yamllint:
name: Check yaml files
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: yamllint .

0 comments on commit da86091

Please sign in to comment.