From d46942da412886eff8da95d1197258898e9a1f98 Mon Sep 17 00:00:00 2001 From: Lars Eggert Date: Mon, 23 Sep 2024 10:45:42 +0300 Subject: [PATCH 1/2] ci: Check coverage on multiple platforms In order to get the platform-specific code some coverage testing. --- .github/workflows/codecov.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index c18848759..7fa7bcfdd 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -6,7 +6,10 @@ on: jobs: coverage: - runs-on: ubuntu-latest + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable From 79772af452fd22b98f0d222382daeb4778e8b5df Mon Sep 17 00:00:00 2001 From: Lars Eggert Date: Mon, 23 Sep 2024 11:24:49 +0300 Subject: [PATCH 2/2] Don't notify or comment until three results are uploaded --- .codecov.yml | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .codecov.yml diff --git a/.codecov.yml b/.codecov.yml new file mode 100644 index 000000000..aa9493271 --- /dev/null +++ b/.codecov.yml @@ -0,0 +1,7 @@ +# Do not notify until at least three results have been uploaded from the CI pipeline. +# (Corresponds to the three platforms we check coverage on: Linux, macOS, and Windows.) +codecov: + notify: + after_n_builds: 3 +comment: + after_n_builds: 3