Files
jwt-cpp/.github/workflows/lint.yml
Chris Mc b21d80c22e 🧰 Linting and maintenance (#120)
* some manual fixes to obtain

* fairly close enough

* whitespace fixes

* add comment

* adding clang format + applied

* add editorconfig (supported natively by github web editor)

* apply linting to project

* clean up CI workflows

* zap vcpkg folder

actual one is here
https://github.com/microsoft/vcpkg/tree/master/ports/jwt-cpp

* adding a logo

* thin the lines in the pluses

* use logo + more links to spec and examples

* Create lint.yml

* apply linting
2021-01-11 17:37:14 -05:00

24 lines
508 B
YAML

name: Lint CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
paths:
- 'include/jwt-cpp/**.h'
- 'tests/**.cpp'
- '.github/workflows/lint.yml'
jobs:
cpp:
runs-on: ubuntu-20.04
strategy:
matrix:
files: ["include/jwt-cpp/*.h", "tests/**.cpp"]
steps:
- run: sudo apt-get install clang-format-10
- uses: actions/checkout@v2
- run: clang-format-10 -i ${{ matrix.files }}
- run: exit $(git status -s | wc -l)