Skip to content

Commit a7708ad

Browse files
committed
feat: πŸ—οΈ Added github action for test cases
1 parent 43c03f7 commit a7708ad

File tree

2 files changed

+36
-1
lines changed

2 files changed

+36
-1
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Flutter Tests
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
test:
8+
name: Run Tests
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
13+
- name: Install Flutter
14+
uses: subosito/flutter-action@v2
15+
with:
16+
flutter-version: '3.10.0'
17+
cache: true
18+
cache-key: 'flutter-macos-stable-3.10.0-apple'
19+
cache-path: '${{ runner.tool_cache }}/flutter/macos-stable-3.10.0-apple'
20+
pub-cache-key: 'flutter-pub-macos-stable-3.10.0-apple'
21+
22+
- name: Get dependencies
23+
run: flutter pub get
24+
25+
- name: Analyze project
26+
run: flutter analyze
27+
28+
- name: Run tests
29+
run: flutter test --coverage
30+
31+
- name: Upload coverage reports to Codecov
32+
uses: codecov/codecov-action@v3
33+
with:
34+
file: ./coverage/lcov.info
35+
fail_ci_if_error: false

β€ŽREADME.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
# ShowCaseView
55

6-
[![Build](https://github.com/SimformSolutionsPvtLtd/flutter_showcaseview/actions/workflows/flutter.yaml/badge.svg?branch=master)](https://github.com/SimformSolutionsPvtLtd/flutter_showcaseview/actions) [![showcaseview](https://img.shields.io/pub/v/showcaseview?label=showcaseview)](https://pub.dev/packages/showcaseview)
6+
[![showcaseview](https://img.shields.io/pub/v/showcaseview?label=showcaseview)](https://pub.dev/packages/showcaseview) [![Build](https://github.com/SimformSolutionsPvtLtd/flutter_showcaseview/actions/workflows/flutter.yaml/badge.svg?branch=master)](https://github.com/SimformSolutionsPvtLtd/flutter_showcaseview/actions) [![Tests](https://github.com/SimformSolutionsPvtLtd/flutter_showcaseview/actions/workflows/flutter_tests.yaml/badge.svg?branch=master)](https://github.com/SimformSolutionsPvtLtd/flutter_showcaseview/actions)
77

88
A Flutter package allows you to Showcase/Highlight your widgets.
99

0 commit comments

Comments
Β (0)