mirror of
https://github.com/microsoft/mscclpp.git
synced 2026-05-12 09:17:06 +00:00
29 lines
513 B
YAML
29 lines
513 B
YAML
name: C++ Lint
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- '**'
|
|
pull_request:
|
|
branches:
|
|
- '**'
|
|
|
|
jobs:
|
|
run-linters:
|
|
runs-on: ubuntu-20.04
|
|
|
|
steps:
|
|
- name: Check git version
|
|
env:
|
|
min-ver: "2.18"
|
|
run: dpkg --compare-versions $(git version | awk '{print $3}') ge ${{ env.min-ver }}
|
|
|
|
- name: Check out Git repository
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Install ClangFormat
|
|
run: sudo apt-get install -y clang-format-12
|
|
|
|
- name: Run cpplint
|
|
run: make cpplint
|