From 5bebc191f08cd89d0406b49a59e9da7251bc549d Mon Sep 17 00:00:00 2001 From: Sebastine Odeh Date: Sun, 4 May 2025 06:07:38 +0100 Subject: [PATCH 1/9] update readme to update coverage --- README.md | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/README.md b/README.md index 0ab01ad..ab0d66e 100644 --- a/README.md +++ b/README.md @@ -1,16 +1,3 @@ - - # Cache Manager Plus 📚 A Dart package for managing cache with support for multiple storage backends. The `CacheManager` provides an easy-to-use From 7c91864efc7b99dd1b05563d2f98f39bf62f25a1 Mon Sep 17 00:00:00 2001 From: Sebastine Odeh Date: Sun, 4 May 2025 06:18:52 +0100 Subject: [PATCH 2/9] update script to see coverage path --- .github/workflows/ci.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 46dd13c..7ae02eb 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -41,7 +41,10 @@ jobs: run: dart analyze - name: Run tests - run: dart test --coverage coverage/lcov.info + run: | + dart test --coverage coverage/lcov.info + ls + ls ./coverage - name: Upload coverage to codecov uses: codecov/codecov-action@v5 From 44462715310e517069a9ce5e591b082d340a3077 Mon Sep 17 00:00:00 2001 From: Sebastine Odeh Date: Sun, 4 May 2025 06:24:39 +0100 Subject: [PATCH 3/9] update coverage file path --- .github/workflows/ci.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 7ae02eb..15fbfd2 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -27,8 +27,10 @@ jobs: path: /opt/hostedtoolcache/flutter key: ${{ runner.OS }}-flutter-install-cache-${{ env.flutter_version }} - - uses: subosito/flutter-action@v2 + - name: Set up Flutter + uses: subosito/flutter-action@v2 with: + cache: true channel: 'stable' - name: Install dependencies @@ -49,5 +51,5 @@ jobs: - name: Upload coverage to codecov uses: codecov/codecov-action@v5 with: - files: ./coverage/lcov.info + files: /Users/runner/work/cache_manager/cache_manager/coverage/lcov.info token: ${{ secrets.CODECOV_TOKEN }} \ No newline at end of file From e1d99a970e6e790858a969e36fdeb54593cf8af3 Mon Sep 17 00:00:00 2001 From: Sebastine Odeh Date: Sun, 4 May 2025 06:29:16 +0100 Subject: [PATCH 4/9] print full path --- .github/workflows/ci.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 15fbfd2..8a9f394 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -47,6 +47,7 @@ jobs: dart test --coverage coverage/lcov.info ls ls ./coverage + pwd - name: Upload coverage to codecov uses: codecov/codecov-action@v5 From cf51530bd005a3e62ca457aa9a68a13352d48824 Mon Sep 17 00:00:00 2001 From: Sebastine Odeh Date: Sun, 4 May 2025 06:49:37 +0100 Subject: [PATCH 5/9] try upload without specifying file --- .github/workflows/ci.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 8a9f394..1639158 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -52,5 +52,6 @@ jobs: - name: Upload coverage to codecov uses: codecov/codecov-action@v5 with: - files: /Users/runner/work/cache_manager/cache_manager/coverage/lcov.info + disable_search: true + fail_ci_if_error: true token: ${{ secrets.CODECOV_TOKEN }} \ No newline at end of file From c162c94c713676b5f1355bf29a77dd8173e9f808 Mon Sep 17 00:00:00 2001 From: Sebastine Odeh Date: Sun, 4 May 2025 06:53:25 +0100 Subject: [PATCH 6/9] remove disable search --- .github/workflows/ci.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 1639158..0a8532d 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -52,6 +52,5 @@ jobs: - name: Upload coverage to codecov uses: codecov/codecov-action@v5 with: - disable_search: true fail_ci_if_error: true token: ${{ secrets.CODECOV_TOKEN }} \ No newline at end of file From b08a0e06db196ad641580c66fa69fc663000524c Mon Sep 17 00:00:00 2001 From: Sebastine Odeh Date: Sun, 4 May 2025 07:12:53 +0100 Subject: [PATCH 7/9] add test with coverage command --- .github/workflows/ci.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 0a8532d..2ba2ae1 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -45,9 +45,7 @@ jobs: - name: Run tests run: | dart test --coverage coverage/lcov.info - ls - ls ./coverage - pwd + dart pub global run coverage:test_with_coverage - name: Upload coverage to codecov uses: codecov/codecov-action@v5 From 36bd7c817c25435d3262311c325888844a6494c1 Mon Sep 17 00:00:00 2001 From: Sebastine Odeh Date: Sun, 4 May 2025 07:13:06 +0100 Subject: [PATCH 8/9] add test with coverage command --- .github/workflows/ci.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 2ba2ae1..6acc062 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -44,7 +44,6 @@ jobs: - name: Run tests run: | - dart test --coverage coverage/lcov.info dart pub global run coverage:test_with_coverage - name: Upload coverage to codecov From 9942870908527e1cfb94ae58bbf10fa8f47c144a Mon Sep 17 00:00:00 2001 From: Sebastine Odeh Date: Sun, 4 May 2025 07:16:09 +0100 Subject: [PATCH 9/9] add test with coverage command --- .github/workflows/ci.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 6acc062..52b272e 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -36,6 +36,9 @@ jobs: - name: Install dependencies run: dart pub get + - run: dart pub global activate coverage + name: Activate dart coverage + - name: Format code run: dart format . --set-exit-if-changed