mirror-chatterino2/.github/workflows/check-formatting.yml
pajlada f191de2514
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.
2020-10-18 15:54:48 +02:00

27 lines
480 B
YAML

name: Check formatting
on:
push:
paths-ignore:
- 'docs/**'
- '*.md'
pull_request:
jobs:
check:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2.3.3
- name: apt-get update
run: sudo apt-get update
- name: 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