Skip to content

Commit

Permalink
ENH: Add clang-format GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
thewtex committed Jan 13, 2020
1 parent 010b364 commit d0158ba
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/apply-clang-format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Apply clang-format to PR

on:
pull_request:
types: [labeled]

jobs:
clang-format:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: InsightSoftwareConsortium/ITKApplyClangFormatAction@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
13 changes: 13 additions & 0 deletions .github/workflows/clang-format-linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: clang-format linter

on: [push,pull_request]

jobs:
lint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1
- uses: InsightSoftwareConsortium/ITKClangFormatLinterAction@master

0 comments on commit d0158ba

Please sign in to comment.