Skip to content

Commit

Permalink
Inital version of code coverage markdown in wiki
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanBoychevMarinov committed Nov 28, 2023
1 parent 949f64a commit 31e7125
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/code-coverage-summary.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Create Coverage

on: push
permissions: write-all
jobs:
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '1.21.0'
- name: Setup
run: go get github.com/boumenot/gocover-cobertura
- name: Test
run: go test ./... -coverprofile=coverage.out
- name: Convert
run: gocover-cobertura -by-files < coverage.out > coverage.xml
- name: Code Coverage Report
uses: irongut/[email protected]
with:
filename: coverage.xml
badge: true
fail_below_min: true
format: markdown
hide_branch_rate: false
hide_complexity: false
indicators: true
output: both
thresholds: '60 80'
- name: Checkout wiki code
uses: actions/checkout@v2
with:
repository: ${{github.repository}}.wiki
path: markdown
- name: Push to wiki
run: |
cp code-coverage-results.md markdown/
cd markdown
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add .
git diff-index --quiet HEAD || git commit -m "Add changes" && git push
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
![Kanto logo](https://github.com/eclipse-kanto/kanto/raw/main/logo/kanto.svg)


# Eclipse Kanto - AWS Connector

# go-test-coverage
![coverage](https://raw.githubusercontent.com/bosch-io/aws-connector/badges/.badges/218-coverage-report/coverage.svg)

# go-coverate-report
[![Go Coverage](https://github.com/bosch-io/aws-connector/wiki/coverage.svg)](https://raw.githack.com/wiki/bosch-io/aws-connector/coverage.html)

# code-coverage-summary

The **AWS Connector** is the main coordination center which forwards the local
and remote messages. Messages processed by the **AWS Connector** will
typically be related to telemetry data from the devices or command &
Expand Down

0 comments on commit 31e7125

Please sign in to comment.