Update js package (#18) #133
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint and format 💅 | |
on: | |
workflow_dispatch: | |
push: | |
pull_request: | |
branches: | |
- main | |
- develop | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
container: ghcr.io/ledgerhq/ledger-app-builder/ledger-app-builder-legacy:latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Add missing deps | |
run: | | |
DEBIAN_FRONTEND=noninteractive | |
apt-get update | |
apt-get install -y bear sudo | |
- name: Generate compilation database | |
run: bear -- make -j BOLOS_SDK="$NANOSP_SDK" | |
- name: Lint and format 💅 | |
uses: cpp-linter/cpp-linter-action@v2 | |
id: linter | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
file-annotations: true | |
files-changed-only: false | |
ignore: "app/build|cmake|deps|fuzz|tests" | |
step-summary: true | |
style: file # uses .clang-format | |
thread-comments: true | |
tidy-checks: "" # use only .clang-tidy checks | |
- name: Fail if errors | |
if: steps.linter.outputs.checks-failed > 0 | |
run: | | |
echo "Linter or formatter failed!" | |
exit 1 |