aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorMartin Braun <martin@gnuradio.org>2020-01-02 23:49:36 -0800
committerGitHub <noreply@github.com>2020-01-02 23:49:36 -0800
commit1bd55a06bfcb24a0bb9df2ba781d7cf2ae1161ef (patch)
tree14edb4ad5603e50b57b4aa3af81b91df796bd195 /.github
parentmessage_strobe_random: replace boost::random with C++11 (diff)
downloadgnuradio-1bd55a06bfcb24a0bb9df2ba781d7cf2ae1161ef.tar.xz
gnuradio-1bd55a06bfcb24a0bb9df2ba781d7cf2ae1161ef.zip
Create "Check PR Formatting" GitHub Action
This is an action that will test the formatting of the branch against our clang-format settings.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/check-pr-formatting.yml19
1 files changed, 19 insertions, 0 deletions
diff --git a/.github/workflows/check-pr-formatting.yml b/.github/workflows/check-pr-formatting.yml
new file mode 100644
index 000000000..681ead780
--- /dev/null
+++ b/.github/workflows/check-pr-formatting.yml
@@ -0,0 +1,19 @@
+name: Check PR Formatting
+
+on:
+ pull_request:
+ paths:
+ - '!volk/'
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v2
+ - uses: gnuradio/clang-format-lint-action@v0.5-1
+ with:
+ source: '.'
+ exclude: './volk'
+ extensions: 'h,hpp,cpp,cc'
+ clangFormatVersion: 7