This repository has been archived by the owner on May 7, 2024. It is now read-only.
chore(pkgs): automatic update of 3rd party packages #523
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: "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' . |