mirror-chatterino2/.github/workflows/check-formatting.yml
James Upjohn 523e0c5ef4
ci: cancel previous runs on PR update (#3748)
Co-authored-by: Felanbird <41973452+Felanbird@users.noreply.github.com>
2022-05-21 11:33:21 +02:00

32 lines
563 B
YAML

---
name: Check formatting
on:
push:
branches:
- master
pull_request:
concurrency:
group: check-formatting-${{ github.ref }}
cancel-in-progress: true
jobs:
check:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- 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