Skip to content

Commit

Permalink
Add SCC badges and GH action
Browse files Browse the repository at this point in the history
  • Loading branch information
electrocucaracha committed Apr 22, 2024
1 parent 6e43368 commit 5324c99
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/.wordlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ Autoscaler
BACKEND
balancer
blockquote
boyter
BPF
brightgreen
Bugfixes
CentOS
CNI
COCOMO
codebase
config
CONTAINERD
Expand Down Expand Up @@ -111,10 +113,12 @@ RESOLVCONF
rubocop
RUNTIME
runtimes
scc
serverless
SERVICEMESH
SIG
SIGs
sloc
snetworkplumbingwg
src
sriov
Expand All @@ -136,6 +140,7 @@ vmwrapper
VXLAN
WEBHOOK
WIP
xyz
YAML
yml
YOUKI
2 changes: 1 addition & 1 deletion .github/workflows/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
| :--------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------- |
| [diagram](./diagram.yml) | Generates the codebase diagram used by the main README.md file | on new commit/push on master |
| [distros](./distros.yml) | Updates the Vagrant box versions for Distro list supported file | scheduled/manual trigger |
| [linter](./linter.yml) | Verifies broken links in documentation and runs multiple linter tools | on new commit/push on master |
| [linter](./linter.yml) | Counts Line of Codes, verifies broken links in docs and runs linter tools | on new commit/push on master |
| [on-demand_ci](./on-demand_ci.yml) | Runs BDD and integration tests for different container runtimes and projects | on new commit/push on master |
| [on-demand_corner](./on-demand_corner.yml) | Runs integration tests for corner cases (kong, rook, haproxy, kubewarden) | on new commit/push on master |
| [on-demand_molecule](./on-demand_molecule.yml) | Runs unit tests for ansible roles | on new commit/push on master |
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,19 @@ on:
push:
pull_request:
jobs:
get-sloc:
name: Count Lines of Code
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.3
- name: Setup Go
uses: actions/setup-go@v5.0.0
with:
go-version: '>=1.20.0'
- name: Install dependencies
run: go install github.com/boyter/scc/v3@latest
- name: Run scc tool
run: scc --format wide
check-broken-links:
name: Check documentation external links
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
[![Ruby Style Guide](https://img.shields.io/badge/code_style-rubocop-brightgreen.svg)](https://github.com/rubocop/rubocop)
<!-- markdown-link-check-disable-next-line -->
![visitors](https://visitor-badge.laobi.icu/badge?page_id=electrocucaracha.krd)
[![Scc Code Badge](https://sloc.xyz/github/electrocucaracha/krd?category=code)](https://github.com/boyter/scc/)
[![Scc COCOMO Badge](https://sloc.xyz/github/electrocucaracha/krd?category=cocomo)](https://github.com/boyter/scc/)

## Summary

Expand Down

0 comments on commit 5324c99

Please sign in to comment.