From 3efd8b60bd4e8a30f3bf036b7ce65f946aab3270 Mon Sep 17 00:00:00 2001 From: Bruno Gabriel dos Santos Date: Thu, 17 Oct 2024 20:34:39 -0300 Subject: [PATCH] ci: change run test command to add coverage lcov.info --- .github/workflows/coverage.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/coverage.yaml b/.github/workflows/coverage.yaml index 12b58f5..ab21ec8 100644 --- a/.github/workflows/coverage.yaml +++ b/.github/workflows/coverage.yaml @@ -23,7 +23,15 @@ jobs: working-directory: pokedex - name: Run tests - run: flutter test --coverage --reporter github + run: | + flutter test --coverage --reporter github + # Ensure coverage for all files + lcov --list coverage/lcov.info # To verify before editing lcov + if [ -f coverage/lcov.info ]; then + lcov --add-tracefile coverage/lcov.info --output-file coverage/lcov.info + lcov --remove coverage/lcov.info 'test/*' --output-file coverage/lcov.info + lcov --list coverage/lcov.info # To see the changes + fi working-directory: pokedex - name: Upload coverage reports to Codecov