From 8f44c5b7ff7a1f2c5553f3813012e555316c53a4 Mon Sep 17 00:00:00 2001 From: Doug Date: Tue, 6 Feb 2024 10:28:08 +0000 Subject: [PATCH] Add codecov to unit tests. --- .github/workflows/tests.yml | 6 ++++++ codecov.yml | 13 +++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 codecov.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 87de72a..47552f4 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -41,4 +41,10 @@ jobs: path: Logs/CompoundTests.xcresult.zip retention-days: 1 if-no-files-found: ignore + + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v3 + with: + xcode: true + xcode_archive_path: Logs/CompoundTests.xcresult \ No newline at end of file diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 0000000..09b2d69 --- /dev/null +++ b/codecov.yml @@ -0,0 +1,13 @@ +coverage: + status: + project: + default: + # Commits pushed to master should not make the overall + # project coverage decrease by more than 1%: + target: auto + threshold: 1% + patch: false + +ignore: + - "Inspector" + - "Tests"