Skip to content

[clean] Explicit the repository to use when invoking local reusable w… #2

[clean] Explicit the repository to use when invoking local reusable w…

[clean] Explicit the repository to use when invoking local reusable w… #2

Workflow file for this run

name: Code style check
on:
workflow_call:
inputs:
source:
required: true
type: string
version:
required: false
type: number
default: 11
extensions:
required: false
default: 'h,c,proto'
type: string
jobs:
call_get_app_metadata:
# Call this job to infer the application language (C or Rust)
name: Retrieve application metadata
uses: LedgerHQ/ledger-app-workflows/.github/workflows/workflows/_get_app_metadata.yml

Check failure on line 22 in .github/workflows/reusable_lint.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/reusable_lint.yml

Invalid workflow file

invalid value workflow reference: no version specified
job_lint:
name: Lint check
needs: call_get_app_metadata
runs-on: ubuntu-22.04
container:
image: ghcr.io/ledgerhq/ledger-app-builder/ledger-app-builder:latest
steps:
- name: Clone
uses: actions/checkout@v4
- name: Ensure clang-format is customized
if: ${{ needs.call_get_app_metadata.outputs.is_rust == 'false'}}
uses: andstor/file-existence-action@v3
with:
files: ".clang-format"
- name: Lint check for C app
if: ${{ needs.call_get_app_metadata.outputs.is_rust == 'false'}}
uses: DoozyX/clang-format-lint-action@v0.18.2
with:
source: ${{ inputs.source }}
extensions: ${{ inputs.extensions }}
clangFormatVersion: ${{ inputs.version }}
- name: Lint check for Rust app
if: ${{ needs.call_get_app_metadata.outputs.is_rust == 'true'}}
run: cargo fmt --all -- --check
working-directory: ${{ inputs.source }}