refactor: add missing explicit this #619
This file contains hidden or 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@v4 | |
| - name: Cache conda packages | |
| uses: actions/cache@v4 | |
| 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@v3 | |
| with: | |
| activate-environment: opzioni | |
| auto-activate-base: false | |
| environment-file: environment.yml | |
| channels: conda-forge | |
| conda-remove-defaults: "true" | |
| - 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/opzioni/*.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() |