From 5b5b430ab23cae60bb5fc37382f9e2adc6df19e4 Mon Sep 17 00:00:00 2001 From: Sahil-Simform Date: Thu, 24 Jul 2025 17:59:35 +0530 Subject: [PATCH] =?UTF-8?q?feat:=20=F0=9F=8F=97=EF=B8=8F=20Added=20github?= =?UTF-8?q?=20action=20for=20test=20cases?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/flutter_tests.yaml | 35 ++++++++++++++++++++++++++++ README.md | 2 +- test/test.dart | 1 + 3 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/flutter_tests.yaml create mode 100644 test/test.dart diff --git a/.github/workflows/flutter_tests.yaml b/.github/workflows/flutter_tests.yaml new file mode 100644 index 00000000..0d592286 --- /dev/null +++ b/.github/workflows/flutter_tests.yaml @@ -0,0 +1,35 @@ +name: Flutter Tests + +on: + pull_request: + +jobs: + test: + name: Run Tests + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Install Flutter + uses: subosito/flutter-action@v2 + with: + flutter-version: '3.10.0' + cache: true + cache-key: 'flutter-macos-stable-3.10.0-apple' + cache-path: '${{ runner.tool_cache }}/flutter/macos-stable-3.10.0-apple' + pub-cache-key: 'flutter-pub-macos-stable-3.10.0-apple' + + - name: Get dependencies + run: flutter pub get + + - name: Analyze project + run: flutter analyze + + - name: Run tests + run: flutter test --coverage + + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v3 + with: + file: ./coverage/lcov.info + fail_ci_if_error: false diff --git a/README.md b/README.md index a807bb72..cfdbbaf6 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ # ShowCaseView -[![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) +[![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) A Flutter package allows you to Showcase/Highlight your widgets. diff --git a/test/test.dart b/test/test.dart new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/test/test.dart @@ -0,0 +1 @@ +