ruleset: count heap objects #114
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 | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
env: | |
BUILD_TYPE: Debug | |
jobs: | |
cpp-linter: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: sudo apt-get install -y libev-dev liblua5.4-dev libc-ares-dev | |
- name: Configure CMake | |
run: cmake -B "${{github.workspace}}/build" -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_EXPORT_COMPILE_COMMANDS=1 | |
- uses: cpp-linter/cpp-linter-action@main | |
id: linter | |
continue-on-error: true | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
style: file | |
files-changed-only: false | |
ignore: "build|contrib" | |
database: "build" | |
- name: Fail fast?! | |
if: steps.linter.outputs.checks-failed != 0 | |
run: | | |
echo "some linter checks failed. ${{ steps.linter.outputs.checks-failed }}" |