mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
37 lines
733 B
YAML
37 lines
733 B
YAML
---
|
|
name: Check formatting
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
merge_group:
|
|
|
|
concurrency:
|
|
group: check-formatting-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
check:
|
|
runs-on: ubuntu-22.04
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: apt-get update
|
|
run: sudo apt-get update
|
|
|
|
- name: Install clang-format
|
|
run: sudo apt-get -y install dos2unix
|
|
|
|
- name: Check formatting
|
|
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
|