From 2271ed30708ae0a4c2b163cb72fec264f27f596c Mon Sep 17 00:00:00 2001 From: Alex Li Date: Mon, 16 Dec 2024 14:04:25 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=F0=9F=92=9A=20Fix=20invalid=20codecov=20co?= =?UTF-8?q?nfig?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- codecov.yaml => codecov.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename codecov.yaml => codecov.yml (81%) diff --git a/codecov.yaml b/codecov.yml similarity index 81% rename from codecov.yaml rename to codecov.yml index 55a9de65..54620e69 100644 --- a/codecov.yaml +++ b/codecov.yml @@ -1,7 +1,7 @@ -# https://docs.codecov.io/docs/commit-status codecov: notify: - require_ci_to_pass: yes + wait_for_ci: true + require_ci_to_pass: yes coverage: status: @@ -10,7 +10,7 @@ coverage: # basic target: 0% threshold: 0% - base: 0% + base: auto # advanced branches: null if_no_uploads: error From 3514580a38b68a1fdf79a051737579c9a2d315b3 Mon Sep 17 00:00:00 2001 From: Alex Li Date: Mon, 16 Dec 2024 14:18:14 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=F0=9F=91=B7=20Validate=20configurations?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/coverage.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/coverage.sh b/scripts/coverage.sh index fba06aed..16b382ec 100755 --- a/scripts/coverage.sh +++ b/scripts/coverage.sh @@ -3,8 +3,11 @@ set -o pipefail DIR="${1}" -cd ${DIR} +cd "${DIR}" || exit + +# Validate the configurations. +curl --data-binary @codecov.yaml https://codecov.io/validate + dart pub global activate coverage dart run coverage:test_with_coverage --port=9292 format_coverage --lcov --in=coverage --out=coverage.lcov --report-on=lib - From bf4b75d509a1d25359b63689b24001abfc5a0618 Mon Sep 17 00:00:00 2001 From: Alex Li Date: Mon, 16 Dec 2024 14:24:06 +0800 Subject: [PATCH 3/4] =?UTF-8?q?=F0=9F=91=B7=20Validate=20configurations?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/coverage.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/coverage.sh b/scripts/coverage.sh index 16b382ec..412820a8 100755 --- a/scripts/coverage.sh +++ b/scripts/coverage.sh @@ -1,13 +1,14 @@ #!/usr/bin/env bash +set -e set -o pipefail -DIR="${1}" -cd "${DIR}" || exit - # Validate the configurations. curl --data-binary @codecov.yaml https://codecov.io/validate +DIR="${1}" +cd "${DIR}" || exit + dart pub global activate coverage dart run coverage:test_with_coverage --port=9292 format_coverage --lcov --in=coverage --out=coverage.lcov --report-on=lib From 9683f3914ed8b1f79cc391c0a2390943fe2cdcb5 Mon Sep 17 00:00:00 2001 From: Alex Li Date: Mon, 16 Dec 2024 14:30:03 +0800 Subject: [PATCH 4/4] =?UTF-8?q?=F0=9F=91=B7=20Validate=20configurations?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/coverage.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/coverage.sh b/scripts/coverage.sh index 412820a8..8bac702f 100755 --- a/scripts/coverage.sh +++ b/scripts/coverage.sh @@ -4,7 +4,7 @@ set -e set -o pipefail # Validate the configurations. -curl --data-binary @codecov.yaml https://codecov.io/validate +curl --data-binary @codecov.yml https://codecov.io/validate DIR="${1}" cd "${DIR}" || exit