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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
733 B
YAML
Raw Permalink Normal View History

---
2019-11-02 11:59:34 +01:00
name: Check formatting
on:
push:
branches:
- master
pull_request:
merge_group:
2019-11-02 11:59:34 +01:00
concurrency:
group: check-formatting-${{ github.ref }}
cancel-in-progress: true
2019-11-02 11:59:34 +01:00
jobs:
check:
runs-on: ubuntu-22.04
2019-11-02 11:59:34 +01:00
steps:
- uses: actions/checkout@v4
- name: apt-get update
run: sudo apt-get update
2019-11-02 12:13:41 +01:00
- name: Install clang-format
2023-10-31 18:24:47 +01:00
run: sudo apt-get -y install dos2unix
2019-11-02 11:59:34 +01:00
- name: Check formatting
2023-10-31 18:24:47 +01:00
uses: DoozyX/clang-format-lint-action@v0.16.2
with:
source: "./src ./tests/src ./benchmarks/src ./mocks/include"
extensions: "hpp,cpp"
clangFormatVersion: 16
- name: Check line-endings
run: ./scripts/check-line-endings.sh