Skip to content

Commit

Permalink
codecov added
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksandr Nekrasov committed Aug 30, 2023
1 parent f38fd9f commit 1dda0e3
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
17 changes: 17 additions & 0 deletions .github/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
codecov:
require_ci_to_pass: yes

coverage:
precision: 1
round: down
range: "70...100"
status:
project:
default:
target: auto
threshold: 0.5%

comment:
layout: "reach,diff,flags,tree"
behavior: default
require_changes: yes
16 changes: 15 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,18 @@ jobs:
cache-dependency-path: "**/go.sum"
- name: Run coverage tests
run: |
make test-coverage
make test-coverage
mkdir $TEST_RESULTS
cp coverage.out $TEST_RESULTS
cp coverage.html $TEST_RESULTS
- name: Upload coverage report
uses: codecov/codecov-action@v3.1.4
with:
file: ./coverage.txt
fail_ci_if_error: true
verbose: true
- name: Store coverage test output
uses: actions/upload-artifact@v3
with:
name: opentelemetry-go-test-output
path: ${{ env.TEST_RESULTS }}

0 comments on commit 1dda0e3

Please sign in to comment.