diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 46dd13c..52b272e 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -27,13 +27,18 @@ 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 run: dart pub get + - run: dart pub global activate coverage + name: Activate dart coverage + - name: Format code run: dart format . --set-exit-if-changed @@ -41,10 +46,11 @@ jobs: run: dart analyze - name: Run tests - run: dart test --coverage coverage/lcov.info + run: | + dart pub global run coverage:test_with_coverage - name: Upload coverage to codecov uses: codecov/codecov-action@v5 with: - files: ./coverage/lcov.info + fail_ci_if_error: true token: ${{ secrets.CODECOV_TOKEN }} \ No newline at end of file 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