From 8fa5161a951744a058243805b258b99391749eea Mon Sep 17 00:00:00 2001 From: Rikki Schulte Date: Wed, 21 Jun 2023 07:40:18 +0200 Subject: [PATCH 1/4] reintroduce codecov --- .github/workflows/pr-tests.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/pr-tests.yml b/.github/workflows/pr-tests.yml index 54be83b133a..0f9ced384c4 100644 --- a/.github/workflows/pr-tests.yml +++ b/.github/workflows/pr-tests.yml @@ -25,6 +25,13 @@ jobs: - name: Run Unit Tests run: yarn test + - uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: ./coverage/lcov.info + fail_ci_if_error: true # optional (default = false) + verbose: true # optional (default = false) + e2e: name: Cypress E2E Suite runs-on: ubuntu-20.04 From 5ed315ae33a928369c98f4e7ce95fe646f8d1e0f Mon Sep 17 00:00:00 2001 From: Rikki Schulte Date: Wed, 21 Jun 2023 07:46:40 +0200 Subject: [PATCH 2/4] fix path --- .github/workflows/pr-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-tests.yml b/.github/workflows/pr-tests.yml index 0f9ced384c4..6cc412ad396 100644 --- a/.github/workflows/pr-tests.yml +++ b/.github/workflows/pr-tests.yml @@ -28,7 +28,7 @@ jobs: - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} - files: ./coverage/lcov.info + files: coverage/lcov.info fail_ci_if_error: true # optional (default = false) verbose: true # optional (default = false) From 80e9ec90cd4ba9b5ef7bf27f69497e080a0da927 Mon Sep 17 00:00:00 2001 From: Rikki Schulte Date: Wed, 21 Jun 2023 07:50:02 +0200 Subject: [PATCH 3/4] re-add coverage flag --- .github/workflows/pr-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-tests.yml b/.github/workflows/pr-tests.yml index 6cc412ad396..894d87f17e1 100644 --- a/.github/workflows/pr-tests.yml +++ b/.github/workflows/pr-tests.yml @@ -23,7 +23,7 @@ jobs: run: yarn build - name: Run Unit Tests - run: yarn test + run: yarn test --coverage - uses: codecov/codecov-action@v3 with: From 937a9812e5460cb3c9fe5748862ef4f53999a904 Mon Sep 17 00:00:00 2001 From: Rikki Schulte Date: Wed, 21 Jun 2023 07:59:35 +0200 Subject: [PATCH 4/4] more config tweaks --- .codecov.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.codecov.yml b/.codecov.yml index 2e760618faf..d679880a672 100644 --- a/.codecov.yml +++ b/.codecov.yml @@ -1,13 +1,13 @@ codecov: notify: - require_ci_to_pass: no + require_ci_to_pass: yes coverage: precision: 2 round: down range: "30...100" - - status: - project: no - patch: no - changes: no + +comment: # this is a top-level key + layout: "reach, diff, flags, files" + behavior: default + require_changes: true # if true: only post the comment if coverage changes