-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (34 loc) · 1.06 KB
/
clang-format.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
42
name: clang-format
on: push
jobs:
check-formatting:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v2
- name: Cache conda packages
uses: actions/cache@v2
env:
CACHE_VERSION: 0
with:
path: ~/conda_pkgs_dir
key: conda-v${{ env.CACHE_VERSION }}-${{ runner.os }}-${{ hashFiles('environment.yml') }}
- uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: opzioni
auto-activate-base: false
environment-file: environment.yml
- name: Check examples/
run: clang-format --dry-run --verbose -Werror examples/*.cpp
if: always()
- name: Check include/
run: clang-format --dry-run --verbose -Werror include/*.hpp
if: always()
- name: Check src/
run: clang-format --dry-run --verbose -Werror src/*.cpp
if: always()
- name: Check tests/
run: clang-format --dry-run --verbose -Werror tests/*.cpp
if: always()