Skip to content

test

test #9

Workflow file for this run

name: Lint and format 💅
on:
workflow_dispatch:
push:
pull_request:
branches:
- main
- develop
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
build-essential \
cmake \
clang-format \
clang-tidy \
libgtest-dev \
libgmock-dev
- 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: "build|.github|cmake|fuzzing|.vscode|.idea"
step-summary: true
style: file # uses .clang-format
thread-comments: true
tidy-checks: "" # use only .clang-tidy checks
extra-args: "-I./include -I./app/common -I./app/ui -I./evm -I. -I./tests -isystem /usr/include/gtest -isystem /usr/include/gmock"
- name: Fail if errors
if: steps.linter.outputs.checks-failed > 0
run: |
echo "Linter or formatter failed!"
exit 1