-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (35 loc) · 1.05 KB
/
check_code_style.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
name: Check Code Style
# We use action's triggers 'push' and 'pull_request'.
# The strategy is the following: this action will be
# triggered on any push to 'main' branch and any pull
# request to any branch. Thus we avoid duplicate work-
# flows.
on:
push:
branches:
- "main"
pull_request:
branches:
- "**"
jobs:
check_code_style:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ["ubuntu-20.04"]
steps:
# We should checkout the repo with submodules
# cause we need to have symlink to
# dev-tools/.clang-format file for all code
# style checks.
- uses: actions/checkout@v2
with:
# We don't need special credentials since this is a public repo
# that only depends on other public repos.
submodules: "recursive"
# Call the composite action to check files
# for correct code style. This action (action.yml)
# is in `dev-tools` submodule.
- uses: ./submodules/dev-tools/check-code-style
with:
os: ${{matrix.os}}