Skip to content

Commit

Permalink
Adds GitHub Action for checking code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ilumsden committed Oct 10, 2024
1 parent 9a1e207 commit ec0ceba
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/format-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Check code formatting

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
cpp-format-check:
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@v4

- name: Install clang-format
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
build-essential \
clang-format-16
- name: Test formatting
run: |
./scripts/formatting/check-formatting.sh /usr/bin/clang-format-16

0 comments on commit ec0ceba

Please sign in to comment.