This action counts the lines of code and performs complexity analysis using scc. (https://github.com/boyter/scc)
The lines of ccode.
.github/workflows/main.yml
on: [push]jobs:
scc_job:
runs-on: ubuntu-latestname: A job to count the lines of code.steps:
- name: Checkoutuses: actions/checkout@v3
- name: Get the lines of code.id: sccuses: Adapt-API/scc-docker-action@masterwith:
args: ${{ env.workspace }} -i js,go,html,css
- name: Echo scc outputrun: | echo echo -n "${{ steps.scc.outputs.scc }}"