From 5861ed2cfbf371ce8b5cf188d67b5e09e813254d Mon Sep 17 00:00:00 2001 From: Armano Date: Thu, 18 Feb 2021 20:26:01 +0100 Subject: [PATCH 1/2] chore: update codecov configuration --- .codecov.yml | 7 ++++++- .github/workflows/ci.yml | 1 - 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.codecov.yml b/.codecov.yml index 750d876773d3..c9b8006f4961 100644 --- a/.codecov.yml +++ b/.codecov.yml @@ -1,3 +1,8 @@ +codecov: + require_ci_to_pass: no + notify: + wait_for_ci: no + coverage: status: patch: @@ -7,7 +12,7 @@ coverage: default: target: auto threshold: 2% + comment: layout: diff, flags, files require_changes: true - diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 06c9a254d6ae..87334b4022de 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -142,7 +142,6 @@ jobs: - name: Publish code coverage report uses: codecov/codecov-action@v1 with: - yml: ./codecov.yml token: ${{ secrets.CODECOV_TOKEN }} flags: unittest name: codecov From beadb3ca73e821eafc307ecb8a2e04e537174fa7 Mon Sep 17 00:00:00 2001 From: Armano Date: Thu, 18 Feb 2021 21:44:26 +0100 Subject: [PATCH 2/2] fix: correct Issue detecting commit SHA from codecov --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 87334b4022de..0986c2df8f6c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -60,6 +60,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + with: + fetch-depth: 2 - name: echo github.ref run: echo ${{ github.ref }}