mirror of
https://github.com/okalachev/flix.git
synced 2026-08-16 00:38:56 +00:00
Count and print sloc count in tools workflow
This commit is contained in:
@@ -46,3 +46,14 @@ jobs:
|
||||
echo -e "t,x,y,z\n0,1,2,3\n1,4,5,6" > log.csv
|
||||
./csv_to_mcap.py log.csv
|
||||
test $(stat -c %s log.mcap) -eq 883
|
||||
sloc:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- run: sudo apt-get install -y cloc jq
|
||||
- name: Print source lines of code
|
||||
run: cloc --by-file-by-lang flix
|
||||
- name: Annotate total source lines
|
||||
run: |
|
||||
sloc=$(cloc flix --json | jq -r '.SUM.code')
|
||||
echo "::notice title=SLOC::Current SLOC = $sloc"
|
||||
|
||||
Reference in New Issue
Block a user