This repository has been archived on 2026-02-22. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
can/.github/workflows/cpp-linting.yml
T
Stefano Calabretti 7aa61ed9ad Add linting (#5)
* Add format file

* Add action
2022-02-20 12:36:34 +01:00

19 lines
399 B
YAML

name: cpp-linting
on:
pull_request:
jobs:
cpp-linter:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: shenxianpeng/cpp-linter-action@master
id: linter
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
style: file
- name: Result
if: steps.linter.outputs.checks-failed > 0
run: exit 1