Skip to content

Commit

Permalink
Update coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
FrenkyDema committed Aug 28, 2024
1 parent d5c48d2 commit baf09a6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/flutter_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: ${{env.FLUTTER_VERSION}}
flutter-version: stable

- name: Install dependencies
run: flutter pub get
Expand All @@ -25,9 +25,14 @@ jobs:
sudo apt-get install -y lcov
genhtml -o coverage coverage/lcov.info
- name: Upload coverage to Codecov
run: node --max-old-space-size=4096 ./node_modules/.bin/codecov
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
file: coverage/lcov.info
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./coverage

- name: Generate Coverage Badge
uses: tj-actions/coverage-badge-generator@v1
with:
coverage-file: coverage/lcov.info
output-file: coverage/coverage-badge.svg
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
## Risto Widgets for Flutter

[![pub package](https://img.shields.io/pub/v/risto_widgets.svg)](https://pub.dev/packages/risto_widgets)
[![Build Status](https://img.shields.io/github/actions/workflow/status/frenkydema/risto_widgets/flutter.yml)](https://github.com/frenkydema/risto_widgets/actions/workflows/flutter.yml)
[![Build Status](https://img.shields.io/github/actions/workflow/status/frenkydema/risto_widgets/flutter_test.yml)](https://github.com/frenkydema/risto_widgets/actions/workflows/flutter_test.yml)
[![Coverage](./coverage/coverage-badge.svg)](./coverage/index.html)
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT)

### Overview
Expand Down

0 comments on commit baf09a6

Please sign in to comment.