From ff86a5a46bae501bf7928fa03884fb356085534b Mon Sep 17 00:00:00 2001 From: Eric Seidel Date: Thu, 24 Aug 2023 13:20:38 -0700 Subject: [PATCH] ci: use codecov's coverage "carryforward" flags (#1159) --- .github/actions/dart_package/action.yaml | 1 + .github/codecov.yml | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 .github/codecov.yml diff --git a/.github/actions/dart_package/action.yaml b/.github/actions/dart_package/action.yaml index 459b1f08..1382d7f8 100644 --- a/.github/actions/dart_package/action.yaml +++ b/.github/actions/dart_package/action.yaml @@ -70,6 +70,7 @@ runs: - name: Upload Coverage uses: codecov/codecov-action@v3 with: + flags: ${{ inputs.working_directory }} token: ${{ inputs.codecov_token }} - uses: VeryGoodOpenSource/very_good_coverage@v2 diff --git a/.github/codecov.yml b/.github/codecov.yml new file mode 100644 index 00000000..344135cd --- /dev/null +++ b/.github/codecov.yml @@ -0,0 +1,8 @@ +# Not sure if .yaml suffix would work, currently using .yml to match examples: +# https://docs.codecov.com/docs/codecov-yaml +# Validate with: +# curl -X POST --data-binary @codecov.yml https://codecov.io/validate +# See https://docs.codecov.com/docs/flags +flag_management: + default_rules: # the rules that will be followed for any flag added, generally + carryforward: true \ No newline at end of file