Skip to content
Snippets Groups Projects
Select Git revision
  • 04fc22a5b0c95070fe40c61fe2db5c6bdac384d5
  • develop default protected
  • feature/variational-hydro
  • origin/stage/bouguettaia
  • feature/gmsh-reader
  • feature/reconstruction
  • save_clemence
  • feature/kinetic-schemes
  • feature/local-dt-fsi
  • feature/composite-scheme-sources
  • feature/composite-scheme-other-fluxes
  • feature/serraille
  • feature/composite-scheme
  • hyperplastic
  • feature/polynomials
  • feature/gks
  • feature/implicit-solver-o2
  • feature/coupling_module
  • feature/implicit-solver
  • feature/merge-local-dt-fsi
  • master protected
  • v0.5.0 protected
  • v0.4.1 protected
  • v0.4.0 protected
  • v0.3.0 protected
  • v0.2.0 protected
  • v0.1.0 protected
  • Kidder
  • v0.0.4 protected
  • v0.0.3 protected
  • v0.0.2 protected
  • v0 protected
  • v0.0.1 protected
33 results

validate-header-guards.yml

Blame
  • validate-header-guards.yml 976 B
    name: Check header guards
    
    on: [push, pull_request]
    
    jobs:
      build:
        # Set the type of machine to run on
        runs-on: ubuntu-20.04
        steps:
    
          - name: Checkout source code
            uses: actions/checkout@v4
    
          - name: Setup Dependencies
            uses: actions/setup-python@v2
            with:
                python-version: '3.7'
          - name: Install checkguard
            run: pip install guardonce
    
          - name: Check that include guards are properly named
            run: |
              wrong_files=$(checkguard -r src/catch2/ -p "name | append _INCLUDED | upper")
              if [[ $wrong_files ]]; then
                echo "Files with wrong header guard:"
                echo $wrong_files
                exit 1
              fi
    
          - name: Check that there are no duplicated filenames
            run: |
              ./tools/scripts/checkDuplicateFilenames.py
    
          - name: Check that all source files have the correct license header
            run: |
              ./tools/scripts/checkLicense.py