mirror of
https://github.com/project-zot/zot.git
synced 2024-12-16 21:56:37 -05:00
595e1bca59
https://github.com/project-zot/zot/pull/624 https://github.com/project-zot/zot/pull/625 https://github.com/project-zot/zot/pull/626 https://github.com/project-zot/zot/pull/627 https://github.com/project-zot/zot/pull/628 Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
37 lines
793 B
YAML
37 lines
793 B
YAML
name: "Lines of code statistics"
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
release:
|
|
types:
|
|
- published
|
|
|
|
permissions: read-all
|
|
|
|
jobs:
|
|
loc:
|
|
name: Lines of code
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Install go
|
|
uses: actions/setup-go@v3
|
|
with:
|
|
go-version: 1.18.x
|
|
- name: Check out source code
|
|
uses: actions/checkout@v3
|
|
- name: Install dependencies
|
|
run: |
|
|
cd $GITHUB_WORKSPACE
|
|
go install github.com/hhatto/gocloc/cmd/gocloc@latest
|
|
- name: All sources
|
|
run: |
|
|
cd $GITHUB_WORKSPACE
|
|
gocloc .
|
|
- name: All sources (except tests)
|
|
run: |
|
|
cd $GITHUB_WORKSPACE
|
|
gocloc --not-match='.*_test.go' .
|