This action counts the lines of code and performs complexity analysis using scc. (https://github.com/boyter/scc)
Required The CLI args corresponding to the SCC tool
The result of the scc analysis in JSON format as a file in the root folder of the runner. This file can be uploaded as an artifact in the same workflow or can be used as is in the same job context.
.github/workflows/main.yml
on: [push]
jobs:
scc_job:
runs-on: ubuntu-latest
name: SCC analysis
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Execute scc.
id: scc
uses: hdmsantander/scc-docker-action@3.0
with:
args: ${{ env.workspace }} src --ci -i java -f json -o scc.json