Add CI workflow to check line endings of all source files (#2082)

In addition, all found errors (formatting & line ending) have been fixed in this PR.
This commit is contained in:
pajlada
2020-10-18 15:54:48 +02:00
committed by GitHub
parent 4199a01b96
commit f191de2514
17 changed files with 959 additions and 934 deletions
+7 -6
View File
@@ -8,18 +8,19 @@ on:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
container:
image: ubuntu:19.10
check:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2.3.3
- name: apt-get update
run: apt-get update
run: sudo apt-get update
- name: Install clang-format
run: apt-get -y install clang-format
run: sudo apt-get -y install clang-format dos2unix
- name: Check formatting
run: ./tools/check-format.sh
- name: Check line-endings
run: ./tools/check-line-endings.sh