Merge pull request #10794 from alphagov/dependabot/bundler/rack-3.2.4 #2674
  
    
      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: Flog - Code Complexity | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| flog: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: ruby/setup-ruby@v1 | |
| with: | |
| bundler-cache: true | |
| - name: Ensure dev/test gems are installed | |
| run: | | |
| bundle config set with 'development test' | |
| bundle install --jobs 4 --retry 3 | |
| - name: Generate complexity.txt | |
| run: | | |
| find app lib -path 'lib/engines/*' -prune -o -type f -name '*.rb' -print0 \ | |
| | xargs -0 bundle exec flog --all --methods-only --continue \ | |
| > complexity.txt | |
| cat complexity.txt | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: flog-complexity-snapshot | |
| path: | | |
| complexity.txt |