Skip to content

Remove badge labels. At first glance it looks like they are not working. #8

Remove badge labels. At first glance it looks like they are not working.

Remove badge labels. At first glance it looks like they are not working. #8

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: generate test coverage
run: go test ./... -coverprofile=coverage.out
- name: check test coverage
uses: vladopajic/go-test-coverage@v2
with:
profile: coverage.out
local-prefix: github.com/eclipse-kanto/aws-connector
threshold-file: 80
threshold-package: 80
threshold-total: 95
## when token is not specified (value '') this feature is turend off
## in this example badge is created and committed only for main brach
## git-token: ${{ github.ref_name == 'main' && secrets.GITHUB_TOKEN || '' }}
git-token: ${{ secrets.GITHUB_TOKEN }}
## name of branch where badges are stored
## ideally this should be orphan branch (see below how to create this branch)
git-branch: badges