mirror-chatterino2/.github/workflows/check-formatting.yml
dependabot[bot] 4adc5be4d2
chore(deps): bump DoozyX/clang-format-lint-action from 0.16.2 to 0.17 (#5320)
Bumps [DoozyX/clang-format-lint-action](https://github.com/doozyx/clang-format-lint-action) from 0.16.2 to 0.17.
- [Release notes](https://github.com/doozyx/clang-format-lint-action/releases)
- [Commits](https://github.com/doozyx/clang-format-lint-action/compare/v0.16.2...v0.17)

---
updated-dependencies:
- dependency-name: DoozyX/clang-format-lint-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-12 09:31:48 +02:00

37 lines
731 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.17
with:
source: "./src ./tests/src ./benchmarks/src ./mocks/include"
extensions: "hpp,cpp"
clangFormatVersion: 16
- name: Check line-endings
run: ./scripts/check-line-endings.sh