Skip to content

Commit

Permalink
Try with local template without permissions
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Marinov <ivan.marinov@bosch.io>
  • Loading branch information
IvanBoychevMarinov committed Dec 1, 2023
1 parent f7e2dd7 commit 218130a
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .github/workflows/coverage-template.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
on:
workflow_call:
inputs:
coverage-command:
required: true
type: string

jobs:
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '1.21.0'
- name: Generate coverage profile
run: ${{ inputs.coverage-command }}
- name: Update coverage report
uses: ncruces/go-coverage-report@v0
with:
coverage-file: coverage.out
report: false
chart: false
amend: true
reuse-go: true
3 changes: 2 additions & 1 deletion .github/workflows/generate-coverage-report.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ on: push

jobs:
generate-coverage-report:
uses: eclipse-kanto/kanto/.github/workflows/coverage-template.yaml@main
# uses: eclipse-kanto/kanto/.github/workflows/coverage-template.yaml@main
uses: .github/workflows/coverage-template.yaml@main
with:
coverage-command: |
docker system prune -f
Expand Down

0 comments on commit 218130a

Please sign in to comment.