Skip to content

Commit

Permalink
πŸ’š Fix invalid codecov config (#622)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexV525 authored Dec 16, 2024
1 parent ea8d400 commit 08127d1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
6 changes: 3 additions & 3 deletions codecov.yaml β†’ codecov.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -10,7 +10,7 @@ coverage:
# basic
target: 0%
threshold: 0%
base: 0%
base: auto
# advanced
branches: null
if_no_uploads: error
Expand Down
8 changes: 6 additions & 2 deletions scripts/coverage.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
#!/usr/bin/env bash

set -e
set -o pipefail

# Validate the configurations.
curl --data-binary @codecov.yml https://codecov.io/validate

DIR="${1}"
cd ${DIR}
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

0 comments on commit 08127d1

Please sign in to comment.