Add linter job

This commit is contained in:
John Maguire 2020-05-24 16:28:25 +01:00
parent 62d2f0de9b
commit 7e1379ec5d
1 changed files with 12 additions and 0 deletions

View File

@ -8,6 +8,18 @@ on:
- master
jobs:
lint:
name: Lint
runs-on: ubuntu-18.04
steps:
- name: clang-format
uses: DoozyX/clang-format-lint-action@v0.6
with:
style: "{BasedOnStyle: Google, DerivePointerBinding: false, Standard: Cpp11}"
source: ./src
clangFormatVersion: 9
push_translations:
name: Push translation sources to Transifex
if: github.ref == 'refs/heads/master'