feat: use auto instead of type name #539
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |