-
Notifications
You must be signed in to change notification settings - Fork 197
33 lines (27 loc) · 798 Bytes
/
flog.yml
File metadata and controls
33 lines (27 loc) · 798 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Flog - Code Complexity
on:
push:
pull_request:
jobs:
flog:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- 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@v6
with:
name: flog-complexity-snapshot
path: |
complexity.txt