Add FroidurePin bindings + FroidurePin Transf tests #110
Workflow file for this run
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: Formatting | |
| on: [pull_request, workflow_dispatch] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| check-formatting: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: julia-actions/setup-julia@v2 | |
| with: | |
| version: "1" | |
| - name: Install JuliaFormatter | |
| run: julia -e 'using Pkg; Pkg.add("JuliaFormatter")' | |
| - name: Check formatting | |
| run: | | |
| julia -e 'using JuliaFormatter; format(".")' | |
| # Check if any files were modified | |
| if [ -n "$(git diff --name-only)" ]; then | |
| echo "" | |
| echo "============================================================" | |
| echo "ERROR: The following files are not properly formatted:" | |
| echo "============================================================" | |
| git diff --name-only | |
| echo "" | |
| echo "Required changes:" | |
| echo "------------------------------------------------------------" | |
| git diff --color=always | |
| echo "" | |
| echo "============================================================" | |
| echo "To fix locally, run:" | |
| echo "" | |
| echo " julia -e 'using Pkg; Pkg.add(\"JuliaFormatter\"); using JuliaFormatter; format(\".\")'" | |
| echo "============================================================" | |
| exit 1 | |
| else | |
| echo "All files are properly formatted" | |
| fi | |
| - name: Run clang-format style check for C/C++ programs. | |
| uses: jidicula/clang-format-action@v4.18.0 | |
| with: | |
| clang-format-version: 15 | |
| check-path: deps/src |