Skip to content

Commit

Permalink
Add code coverage badge
Browse files Browse the repository at this point in the history
  • Loading branch information
lamnhan066 committed Jun 8, 2024
1 parent 6c7f481 commit 4123a51
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 1 deletion.
35 changes: 35 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Flutter_Tests

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
tests:
runs-on: ubuntu-latest

steps:
- name: Checkout the code
uses: actions/checkout@v4

- name: Install and set Flutter version
uses: subosito/flutter-action@v2
with:
channel: "stable"

- name: Restore packages
run: flutter pub get

- name: Analyze
run: flutter analyze

- name: Run tests
run: flutter test --coverage

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4.0.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: lamnhan066/conditional_trigger
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.5.2+1

* Add code coverage badge.

## 0.5.1

* Fixes issue that the `call` is not incremented.
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Conditional Trigger

[![codecov](https://codecov.io/gh/lamnhan066/conditional_trigger/graph/badge.svg?token=N18M437R3K)](https://codecov.io/gh/lamnhan066/conditional_trigger)

This plugin will make it easier for you to set the conditions for specific method.

## Usage
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: conditional_trigger
description: Make it easier for you to set the conditions (such as min days or min calls) for specific method or widget.
version: 0.5.1
version: 0.5.1+1
homepage: https://github.com/lamnhan066/conditional_trigger

environment:
Expand Down

0 comments on commit 4123a51

Please sign in to comment.