mirror-chatterino2/.github/workflows/check-formatting.yml

28 lines
481 B
YAML
Raw Permalink Normal View History

---
2019-11-02 11:59:34 +01:00
name: Check formatting
on:
push:
branches:
- master
pull_request:
2019-11-02 11:59:34 +01:00
jobs:
check:
runs-on: ubuntu-20.04
2019-11-02 11:59:34 +01:00
steps:
- uses: actions/checkout@v2.4.0
- name: apt-get update
run: sudo apt-get update
2019-11-02 12:13:41 +01:00
- name: Install clang-format
run: sudo apt-get -y install clang-format dos2unix
2019-11-02 11:59:34 +01:00
- name: Check formatting
run: ./tools/check-format.sh
- name: Check line-endings
run: ./tools/check-line-endings.sh