Skip to content

Commit

Permalink
Merge pull request #107 from stan-at-work/Fix-unit-tests
Browse files Browse the repository at this point in the history
Fix all unit tests
  • Loading branch information
doonfrs authored Dec 10, 2024
2 parents ab2cc07 + f000578 commit c03de3b
Show file tree
Hide file tree
Showing 5 changed files with 997 additions and 895 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Tests
on:
pull_request:
branches:
- master
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Install Flutter Dependencies
run: flutter pub get
- name: Run Flutter Tests
run: flutter test
174 changes: 88 additions & 86 deletions demo/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,86 +1,88 @@
name: demo
description: PlutoGrid demo app.

# The following line prevents the package from being accidentally published to
# pub.dev using `pub publish`. This is preferred for private packages.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev

# The following defines the version and build number for your application.
# A version number is three numbers separated by dots, like 1.2.43
# followed by an optional build number separated by a +.
# Both the version and the builder number may be overridden in flutter
# build by specifying --build-name and --build-number, respectively.
# In Android, build-name is used as versionName while build-number used as versionCode.
# Read more about Android versioning at https://developer.android.com/studio/publish/versioning
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 1.0.0+1

environment:
sdk: ^3.0.0

dependencies:
flutter:
sdk: flutter
pluto_grid_plus: 8.4.3
faker: ^2.1.0
url_launcher: ^6.2.1
font_awesome_flutter: ^10.6.0
rainbow_color: ^2.0.1
pluto_menu_bar: ^3.0.1
file_saver: ^0.2.10
pluto_grid_plus_export: 1.0.5
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^1.0.6

dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: ^5.0.0

# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec

# The following section is specific to Flutter.
flutter:

# The following line ensures that the Material Icons font is
# included with your application, so that you can use the icons in
# the material Icons class.
uses-material-design: true

# To add assets to your application, add an assets section, like this:
assets:
- assets/images/

fonts:
- family: OpenSans
fonts:
- asset: assets/fonts/open_sans/OpenSans-ExtraBold.ttf
weight: 800
- asset: assets/fonts/open_sans/OpenSans-ExtraBoldItalic.ttf
weight: 800
style: italic
- asset: assets/fonts/open_sans/OpenSans-Bold.ttf
weight: 700
- asset: assets/fonts/open_sans/OpenSans-BoldItalic.ttf
weight: 700
style: italic
- asset: assets/fonts/open_sans/OpenSans-SemiBold.ttf
weight: 600
- asset: assets/fonts/open_sans/OpenSans-SemiBoldItalic.ttf
weight: 600
style: italic
- asset: assets/fonts/open_sans/OpenSans-Regular.ttf
weight: 400
- asset: assets/fonts/open_sans/OpenSans-Italic.ttf
weight: 400
style: italic
- asset: assets/fonts/open_sans/OpenSans-Light.ttf
weight: 300
- asset: assets/fonts/open_sans/OpenSans-LightItalic.ttf
weight: 300
style: italic

name: demo
description: PlutoGrid demo app.

# The following line prevents the package from being accidentally published to
# pub.dev using `pub publish`. This is preferred for private packages.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev

# The following defines the version and build number for your application.
# A version number is three numbers separated by dots, like 1.2.43
# followed by an optional build number separated by a +.
# Both the version and the builder number may be overridden in flutter
# build by specifying --build-name and --build-number, respectively.
# In Android, build-name is used as versionName while build-number used as versionCode.
# Read more about Android versioning at https://developer.android.com/studio/publish/versioning
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 1.0.0+1

environment:
sdk: ^3.0.0

dependency_overrides:
pluto_grid_plus:
path: ../

dependencies:
flutter:
sdk: flutter
pluto_grid_plus: 8.4.3
faker: ^2.1.0
url_launcher: ^6.2.1
font_awesome_flutter: ^10.6.0
rainbow_color: ^2.0.1
pluto_menu_bar: ^3.0.1
file_saver: ^0.2.10
pluto_grid_plus_export: 1.0.5
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^1.0.6

dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: ^5.0.0

# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec

# The following section is specific to Flutter.
flutter:
# The following line ensures that the Material Icons font is
# included with your application, so that you can use the icons in
# the material Icons class.
uses-material-design: true

# To add assets to your application, add an assets section, like this:
assets:
- assets/images/

fonts:
- family: OpenSans
fonts:
- asset: assets/fonts/open_sans/OpenSans-ExtraBold.ttf
weight: 800
- asset: assets/fonts/open_sans/OpenSans-ExtraBoldItalic.ttf
weight: 800
style: italic
- asset: assets/fonts/open_sans/OpenSans-Bold.ttf
weight: 700
- asset: assets/fonts/open_sans/OpenSans-BoldItalic.ttf
weight: 700
style: italic
- asset: assets/fonts/open_sans/OpenSans-SemiBold.ttf
weight: 600
- asset: assets/fonts/open_sans/OpenSans-SemiBoldItalic.ttf
weight: 600
style: italic
- asset: assets/fonts/open_sans/OpenSans-Regular.ttf
weight: 400
- asset: assets/fonts/open_sans/OpenSans-Italic.ttf
weight: 400
style: italic
- asset: assets/fonts/open_sans/OpenSans-Light.ttf
weight: 300
- asset: assets/fonts/open_sans/OpenSans-LightItalic.ttf
weight: 300
style: italic
Loading

0 comments on commit c03de3b

Please sign in to comment.