-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (35 loc) · 1.06 KB
/
check-formatting.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Check formatting
on:
push:
branches: [ master ]
pull_request:
concurrency:
# In master we want to run for every commit, in other branches — only for the last one
group: ${{
( github.ref == 'refs/heads/master' &&
format('{0}/{1}/{2}', github.workflow, github.ref, github.sha) )
||
format('{0}/{1}', github.workflow, github.ref) }}
cancel-in-progress: true
jobs:
code-formatting-check:
name: Code formatting check
runs-on: [ self-hosted, Linux, X64, aws_autoscaling ]
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Run clang-format
uses: jidicula/[email protected]
with:
clang-format-version: "17"
markdown-formatting-check:
name: Markdown formatting check
runs-on: [ self-hosted, Linux, X64, aws_autoscaling ]
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Run markdownlint
uses: DavidAnson/markdownlint-cli2-action@v16
with:
config: .markdownlint.yml
globs: '**/*.md'