Skip to content

Commit

Permalink
just print coverage report
Browse files Browse the repository at this point in the history
Signed-off-by: Leonardo Luz Almeida <[email protected]>
  • Loading branch information
leoluz committed Sep 4, 2024
1 parent 046405f commit 2b11dfb
Showing 1 changed file with 9 additions and 20 deletions.
29 changes: 9 additions & 20 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,23 +25,12 @@ jobs:
run: make
- name: Run Unit-Tests
run: make test
- name: Archive code coverage results
uses: actions/upload-artifact@v4
with:
name: code-coverage
path: cover.out

code_coverage:
name: "Code coverage report"
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
needs: ci
permissions:
contents: read
actions: read
pull-requests: write
steps:
- uses: fgrosse/[email protected]
with:
coverage-artifact-name: "code-coverage"
coverage-file-name: "cover.out"
# - name: Archive code coverage results
# uses: actions/upload-artifact@v4
# with:
# name: code-coverage
# path: cover.out
- name: Code coverage
run: |
echo "Code coverage report"
go tool cover -func=cover.out

0 comments on commit 2b11dfb

Please sign in to comment.