Rationalize CI
This commit is contained in:
36
.github/workflows/lint-workflow.yml
vendored
36
.github/workflows/lint-workflow.yml
vendored
@@ -1,26 +1,26 @@
|
||||
---
|
||||
name: Code style check
|
||||
|
||||
# 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
|
||||
- master
|
||||
- main
|
||||
- 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.14
|
||||
with:
|
||||
source: "./"
|
||||
extensions: "h,c"
|
||||
clangFormatVersion: 12.0.1
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user