-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a8322f7
commit 94679e5
Showing
2 changed files
with
35 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -75,4 +75,23 @@ jobs: | |
label: Coverage | ||
message: ${{ env.COVERAGE }}% | ||
color: ${{ env.COVERAGE >= 80 && 'green' || env.COVERAGE >= 60 && 'yellow' || 'red' }} | ||
if: always() | ||
if: always() | ||
|
||
- name: Install cloc | ||
run: sudo apt-get install cloc | ||
|
||
- name: Count Lines of Code | ||
run: | | ||
LOC=$(cloc --json --include-lang=Go . | jq '.SUM.code') | ||
echo "LOC=${LOC}" >> $GITHUB_ENV | ||
- name: Create Lines of Code Badge | ||
uses: schneegans/[email protected] | ||
with: | ||
auth: ${{ secrets.DYNAMIC_GIST_ACTION }} | ||
gistID: ${{ secrets.DYNA_GIST_ID }} | ||
filename: minion-loc.json | ||
label: Lines of Code | ||
message: ${{ env.LOC }} | ||
color: lightblue | ||
if: always() |
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