From 949057e149073cc9272abbb9b573d29cffacbfb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Berislav=20Balogovi=C4=87?= Date: Tue, 22 Oct 2024 19:54:20 +0200 Subject: [PATCH] Add Codecov --- .github/workflows/tests.yaml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 15d7156..733ca14 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -77,6 +77,14 @@ jobs: with: github_token: ${{ secrets.GITHUB_TOKEN }} coverage_path: coverage.xml - threshold_alert: 3 - threshold_warning: 50 + threshold_alert: 80 + threshold_warning: 90 comment_mode: update + + - name: Upload Coverage to Codecov + if: ${{ success() }} + uses: codecov/codecov-action@v4 + with: + file: coverage.xml + flags: ${{ matrix.php }} + token: ${{ secrets.CODECOV_TOKEN }}