Skip to content

Commit 8a9a7ed

Browse files
committed
MAYA-108293 add clang format lint action
1 parent 5ba3e43 commit 8a9a7ed

3 files changed

Lines changed: 26 additions & 0 deletions

File tree

.clang-format-exclude

Whitespace-only changes.

.clang-format-ignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
./plugin/al/schemas/codegenTemplates/schemaClass.h
2+
./plugin/al/schemas/codegenTemplates/tokens.h
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Run clang-format-lint
2+
# https://github.com/marketplace/actions/clang-format-lint
3+
4+
# Trigger the workflow on pull request (assigned) event for the branch
5+
# https://help.github.com/en/actions/reference/events-that-trigger-workflows
6+
# change
7+
8+
on:
9+
pull_request:
10+
branches: [dev]
11+
types: [assigned]
12+
13+
jobs:
14+
15+
clang_format_linter:
16+
timeout-minutes: 30
17+
runs-on: ubuntu-latest
18+
if: ${{ github.event.assignee.login == 'ecp-maya-devops-adsk' }}
19+
steps:
20+
- uses: actions/checkout@v2
21+
- uses: DoozyX/clang-format-lint-action@v0.11
22+
with:
23+
source: '.'
24+
clangFormatVersion: 10

0 commit comments

Comments
 (0)