Merge pull request #1605 from NASA-AMMOS/release/v3-1-1 #1554
This file contains 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: Count Lines of Code | |
on: | |
pull_request: | |
branches: | |
- develop | |
- dev-[0-9]+.[0-9]+.[0-9]+ | |
push: | |
branches: | |
- develop | |
tags: | |
- v* | |
workflow_dispatch: | |
jobs: | |
cloc: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v4 | |
- name: Install cloc | |
run: | | |
sudo apt-get update | |
sudo apt-get install --yes cloc | |
- name: Run cloc | |
run: | | |
for f in $(ls -D); do | |
echo "=======================" | |
echo "$f" | |
echo "=======================" | |
cloc \ | |
--include-lang "TypeScript,SQL,Java" \ | |
--by-percent cmb \ | |
$(git ls-files "$f") | |
done |