2021-02-27 15:37:51 +01:00
|
|
|
---
|
2019-11-02 11:59:34 +01:00
|
|
|
name: Check formatting
|
|
|
|
|
2020-07-18 14:27:06 +02:00
|
|
|
on:
|
|
|
|
push:
|
2021-02-27 15:37:51 +01:00
|
|
|
branches:
|
|
|
|
- master
|
2020-07-18 14:27:06 +02:00
|
|
|
pull_request:
|
2019-11-02 11:59:34 +01:00
|
|
|
|
|
|
|
jobs:
|
2020-10-18 15:54:48 +02:00
|
|
|
check:
|
|
|
|
runs-on: ubuntu-20.04
|
2019-11-02 11:59:34 +01:00
|
|
|
|
|
|
|
steps:
|
2021-02-27 15:37:51 +01:00
|
|
|
- uses: actions/checkout@v2.3.4
|
|
|
|
|
|
|
|
- name: apt-get update
|
|
|
|
run: sudo apt-get update
|
2019-11-02 12:13:41 +01:00
|
|
|
|
2021-02-27 15:37:51 +01:00
|
|
|
- name: Install clang-format
|
|
|
|
run: sudo apt-get -y install clang-format dos2unix
|
2019-11-02 11:59:34 +01:00
|
|
|
|
2021-02-27 15:37:51 +01:00
|
|
|
- name: Check formatting
|
|
|
|
run: ./tools/check-format.sh
|
2020-10-18 15:54:48 +02:00
|
|
|
|
2021-02-27 15:37:51 +01:00
|
|
|
- name: Check line-endings
|
|
|
|
run: ./tools/check-line-endings.sh
|