From cc43dcba226d208dc4be965e83a8ace4232ed3f3 Mon Sep 17 00:00:00 2001 From: Luke Date: Wed, 21 Aug 2024 18:38:07 +0100 Subject: [PATCH 1/6] ci: Add release please and other github actions --- .github/workflows/on-main.yml | 22 +++++++ .github/workflows/on-release.yml | 9 +++ .github/workflows/pull-request.yml | 57 ++++++++++++++++++ release-please/.release-please-manifest.json | 3 + release-please/release-please-config.json | 62 ++++++++++++++++++++ 5 files changed, 153 insertions(+) create mode 100644 .github/workflows/on-main.yml create mode 100644 .github/workflows/on-release.yml create mode 100644 .github/workflows/pull-request.yml create mode 100644 release-please/.release-please-manifest.json create mode 100644 release-please/release-please-config.json diff --git a/.github/workflows/on-main.yml b/.github/workflows/on-main.yml new file mode 100644 index 0000000..0011d37 --- /dev/null +++ b/.github/workflows/on-main.yml @@ -0,0 +1,22 @@ +name: CI - On Main + +on: + push: + branches: + - main + +permissions: + contents: write + pull-requests: write + +# This job is triggered when a new tag is pushed to the main branch. +jobs: + # This job uses the release-please action to create a release PR. + # See https://github.com/googleapis/release-please + release-please: + runs-on: ubuntu-latest + steps: + - uses: googleapis/release-please-action@v4 + with: + manifest-file: "release-please/.release-please-manifest.json" + config-file: "release-please/release-please-config.json" diff --git a/.github/workflows/on-release.yml b/.github/workflows/on-release.yml new file mode 100644 index 0000000..9fb967b --- /dev/null +++ b/.github/workflows/on-release.yml @@ -0,0 +1,9 @@ +name: CI - On Release +on: + push: + tags: + - "*" +# jobs: +## This job is triggered when a new tag is pushed to the repository. +## Typically this would be a release from release-please. +## Here you may want to create a build, publish to a package registry, etc. diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml new file mode 100644 index 0000000..a7291d9 --- /dev/null +++ b/.github/workflows/pull-request.yml @@ -0,0 +1,57 @@ +name: CI - Pull Request + +on: + pull_request: + # pull_request_target: # Uncomment this line if you are using pull_request_target + +# Pull Request Runs on the same branch will be cancelled +concurrency: + group: ${{ github.head_ref }} + cancel-in-progress: true + +jobs: + code-quality: + runs-on: ubuntu-latest + steps: + # Checkout the repo + - uses: actions/checkout@v4 + with: + repository: ${{github.event.pull_request.head.repo.full_name}} + + # Use the flutter-action to set up flutter, and cache dependencies + - uses: subosito/flutter-action@v2 + with: + cache: true + + # If you have generated code, you may want to run build_runner to generate the code + # - run: dart run build_runner build --delete-conflicting-outputs + + # Uses the flutter-code-quality action to run code quality checks + # This will return a status check to the pull request + - uses: ZebraDevs/flutter-code-quality@v1.0.8 + with: + token: ${{secrets.GITHUB_TOKEN}} + + # You may want to add more jobs here, such as building and testing your code. + # The following commented job is an example of deploying a preview version of your app + # deploy-preview: + # name: Deploy preview version of the storybook on firebase + # needs: code-quality + # runs-on: ubuntu-latest + # steps: + # - uses: actions/checkout@v4 + # with: + # repository: ${{github.event.pull_request.head.repo.full_name}} + # ref: ${{ github.head_ref }} + # - uses: subosito/flutter-action@v2 + # with: + # cache: true + # - name: Setup flutter + # run: flutter pub get + # - name: Build example app + # run: flutter build web + # - uses: FirebaseExtended/action-hosting-deploy@v0 + # with: + # repoToken: "${{ secrets.GITHUB_TOKEN }}" + # firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_ZETA_DS }}" + # channelId: "pr-${{ github.event.number }}-${{ github.event.pull_request.head.ref }}" diff --git a/release-please/.release-please-manifest.json b/release-please/.release-please-manifest.json new file mode 100644 index 0000000..1332969 --- /dev/null +++ b/release-please/.release-please-manifest.json @@ -0,0 +1,3 @@ +{ + ".": "0.0.1" +} \ No newline at end of file diff --git a/release-please/release-please-config.json b/release-please/release-please-config.json new file mode 100644 index 0000000..826f132 --- /dev/null +++ b/release-please/release-please-config.json @@ -0,0 +1,62 @@ +{ + "packages": { + ".": { + "release-type": "dart" + } + }, + "changelog-sections": [ + { + "type": "feat", + "section": "โœจ New Features" + }, + { + "type": "fix", + "section": "๐Ÿชฒ Bug Fixes" + }, + { + "type": "revert", + "section": "๐Ÿ‘€ Reverts" + }, + { + "type": "docs", + "section": "๐Ÿ“ˆ Documentation" + }, + { + "type": "deps", + "section": "โ›“๏ธ Dependencies" + }, + { + "type": "test", + "section": "๐Ÿงช Tests" + }, + { + "type": "chore", + "section": "๐Ÿงน Miscellaneous Chores" + }, + { + "type": "perf", + "section": "Performance Improvements", + "hidden": true + }, + { + "type": "refactor", + "section": "Code Refactoring", + "hidden": true + }, + { + "type": "style", + "section": "Styles", + "hidden": true + }, + { + "type": "build", + "section": "Build System", + "hidden": true + }, + { + "type": "ci", + "section": "Continuous Integration", + "hidden": true + } + ] +} \ No newline at end of file From e371d4a8c1d3c7d9dba257e9f93deba1bb26e9d1 Mon Sep 17 00:00:00 2001 From: Luke Date: Wed, 21 Aug 2024 20:02:45 +0100 Subject: [PATCH 2/6] test: Add basic tests --- .github/workflows/pull-request.yml | 2 +- coverage/lcov.info | 193 +++++++++++++++++++++++++++++ lib/main.dart | 2 + lib/src/pages/example.dart | 12 +- lib/src/utils/routes.dart | 10 +- macos/Runner/AppDelegate.swift | 2 +- pubspec.yaml | 2 +- test/widget_test.dart | 104 ++++++++++++++-- 8 files changed, 303 insertions(+), 24 deletions(-) create mode 100644 coverage/lcov.info diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index a7291d9..2e02b40 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -16,7 +16,7 @@ jobs: # Checkout the repo - uses: actions/checkout@v4 with: - repository: ${{github.event.pull_request.head.repo.full_name}} + fetch-depth: 0 # Use the flutter-action to set up flutter, and cache dependencies - uses: subosito/flutter-action@v2 diff --git a/coverage/lcov.info b/coverage/lcov.info new file mode 100644 index 0000000..d77ae87 --- /dev/null +++ b/coverage/lcov.info @@ -0,0 +1,193 @@ +SF:lib/main.dart +DA:14,2 +DA:16,1 +DA:17,1 +DA:21,1 +DA:23,1 +DA:25,1 +DA:26,1 +DA:27,1 +LF:8 +LH:8 +end_of_record +SF:lib/src/utils/routes.dart +DA:7,3 +DA:8,3 +DA:10,3 +DA:11,1 +DA:12,1 +DA:13,1 +DA:14,1 +DA:15,1 +DA:16,2 +DA:18,1 +DA:19,1 +DA:20,1 +DA:22,1 +DA:24,1 +DA:25,3 +DA:26,1 +DA:27,2 +DA:32,1 +DA:36,1 +DA:39,1 +DA:40,1 +DA:41,1 +DA:42,2 +DA:43,2 +DA:49,1 +DA:53,1 +DA:54,2 +DA:55,2 +DA:66,1 +DA:67,1 +DA:68,1 +DA:69,1 +DA:70,1 +DA:72,1 +DA:76,1 +DA:77,1 +DA:78,1 +DA:79,1 +DA:81,1 +LF:39 +LH:39 +end_of_record +SF:lib/src/pages/example.dart +DA:5,1 +DA:7,1 +DA:8,1 +DA:15,1 +DA:17,2 +DA:19,1 +DA:20,1 +DA:21,1 +DA:22,1 +DA:23,4 +DA:28,1 +DA:30,1 +DA:33,1 +DA:35,1 +DA:43,1 +DA:44,1 +DA:46,1 +DA:47,1 +DA:48,1 +DA:49,1 +DA:50,1 +DA:51,1 +DA:52,1 +DA:53,1 +DA:56,1 +DA:58,1 +DA:59,1 +DA:60,1 +DA:62,0 +DA:63,0 +DA:72,1 +DA:73,0 +DA:74,0 +DA:75,0 +DA:77,0 +DA:84,1 +DA:85,1 +DA:87,0 +DA:89,1 +DA:90,1 +DA:91,1 +DA:92,1 +DA:97,1 +DA:98,1 +DA:100,1 +DA:102,1 +DA:103,1 +DA:104,1 +DA:106,1 +DA:108,0 +DA:110,1 +DA:113,0 +DA:114,0 +DA:116,1 +DA:118,1 +DA:119,1 +DA:120,0 +DA:121,0 +DA:124,1 +DA:125,1 +DA:127,1 +DA:128,1 +DA:129,1 +DA:131,1 +DA:132,1 +DA:139,1 +DA:140,1 +DA:142,1 +DA:143,8 +DA:148,1 +DA:149,0 +DA:150,1 +DA:151,1 +DA:152,1 +DA:155,1 +DA:157,2 +DA:158,0 +DA:166,1 +DA:167,1 +DA:168,1 +DA:170,0 +DA:171,0 +DA:174,1 +DA:178,0 +DA:180,1 +DA:188,0 +DA:189,1 +DA:190,1 +DA:191,1 +DA:192,1 +DA:198,1 +DA:200,1 +DA:201,1 +DA:202,2 +DA:203,2 +DA:204,2 +DA:205,2 +DA:206,2 +DA:207,1 +DA:209,1 +DA:211,1 +DA:212,1 +DA:213,1 +DA:214,1 +DA:215,1 +DA:216,1 +DA:220,1 +DA:221,1 +DA:223,1 +DA:225,1 +DA:226,1 +DA:234,1 +DA:235,1 +DA:237,1 +DA:239,0 +DA:242,1 +DA:243,1 +DA:248,0 +DA:249,0 +DA:250,0 +DA:253,1 +DA:266,1 +DA:267,1 +DA:269,1 +DA:271,1 +DA:272,1 +DA:273,1 +DA:279,1 +LF:128 +LH:106 +end_of_record +SF:lib/src/pages/home.dart +DA:5,1 +DA:7,1 +LF:2 +LH:2 +end_of_record diff --git a/lib/main.dart b/lib/main.dart index cb59c45..65d0904 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -3,10 +3,12 @@ import 'package:zeta_flutter/zeta_flutter.dart'; import 'package:zeta_flutter_template/src/utils/routes.dart'; +// coverage:ignore-start void main() async { WidgetsFlutterBinding.ensureInitialized(); runApp(const MyApp()); } +// coverage:ignore-end class MyApp extends StatefulWidget { const MyApp({super.key}); diff --git a/lib/src/pages/example.dart b/lib/src/pages/example.dart index 75c7fb3..81b978f 100644 --- a/lib/src/pages/example.dart +++ b/lib/src/pages/example.dart @@ -57,7 +57,7 @@ class _ExamplePageState extends State { child: Row( children: [ ZetaButton( - label: 'Button', + label: 'Open Dialog', onPressed: () { showZetaDialog( context, @@ -199,10 +199,10 @@ class _ExamplePageState extends State { child: Row( children: [ SizedBox(width: 250, child: ZetaDateInput(label: 'Date Input')), - const SizedBox(width: 250, child: ZetaPasswordInput(label: 'Password input')), - const SizedBox(width: 250, child: ZetaPhoneInput(label: 'Phone Input')), - const SizedBox(width: 250, child: ZetaTimeInput(label: 'Phone Input')), - const SizedBox(width: 250, child: ZetaTextInput(label: 'Phone Input')), + SizedBox(width: 250, child: ZetaPasswordInput(label: 'Password input')), + SizedBox(width: 250, child: ZetaPhoneInput(label: 'Phone Input')), + SizedBox(width: 250, child: ZetaTimeInput(label: 'Phone Input')), + SizedBox(width: 250, child: ZetaTextInput(label: 'Phone Input')), SizedBox( width: 250, child: ZetaSelectInput( @@ -238,7 +238,7 @@ class _ExamplePageState extends State { onActionButtonPressed: () {}, title: const Text('Screen Header Bar'), ), - const ZetaSearchBar(), + ZetaSearchBar(), ZetaSegmentedControl( segments: const [ ZetaButtonSegment(value: 1, child: Text('Segmented')), diff --git a/lib/src/utils/routes.dart b/lib/src/utils/routes.dart index 8dd7b5e..87138c4 100644 --- a/lib/src/utils/routes.dart +++ b/lib/src/utils/routes.dart @@ -13,7 +13,7 @@ final goRouter = GoRouter( builder: (context, state, navigationShell) { return LayoutBuilder( builder: (context, constraints) { - final showBottomBar = constraints.maxWidth < 479; + final showBottomBar = constraints.maxWidth < 500; final body = CustomScrollView( slivers: [ @@ -42,8 +42,8 @@ final goRouter = GoRouter( onSelect: (value) => navigationShell.goBranch(value), selectedIndex: state.fullPath == '/' ? 0 : 1, items: const [ - ZetaNavigationRailItem(label: 'Welcome', icon: Icon(ZetaIcons.content_round)), - ZetaNavigationRailItem(label: 'Example', icon: Icon(ZetaIcons.star_round)), + ZetaNavigationRailItem(label: 'Welcome', icon: Icon(ZetaIcons.content)), + ZetaNavigationRailItem(label: 'Example', icon: Icon(ZetaIcons.star)), ], ), Expanded(child: body), @@ -54,8 +54,8 @@ final goRouter = GoRouter( onTap: (value) => navigationShell.goBranch(value), currentIndex: state.fullPath == '/' ? 0 : 1, items: const [ - ZetaNavigationBarItem(icon: ZetaIcons.content_round, label: 'Welcome'), - ZetaNavigationBarItem(icon: ZetaIcons.star_round, label: 'Example'), + ZetaNavigationBarItem(icon: ZetaIcons.content, label: 'Welcome'), + ZetaNavigationBarItem(icon: ZetaIcons.star, label: 'Example'), ], ) : null, diff --git a/macos/Runner/AppDelegate.swift b/macos/Runner/AppDelegate.swift index d53ef64..8e02df2 100644 --- a/macos/Runner/AppDelegate.swift +++ b/macos/Runner/AppDelegate.swift @@ -1,7 +1,7 @@ import Cocoa import FlutterMacOS -@NSApplicationMain +@main class AppDelegate: FlutterAppDelegate { override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool { return true diff --git a/pubspec.yaml b/pubspec.yaml index b4926c7..f6bdefb 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -31,7 +31,7 @@ dependencies: flutter: sdk: flutter go_router: ^14.2.0 - zeta_flutter: ^0.14.0 + zeta_flutter: ^0.15.1 dev_dependencies: flutter_test: diff --git a/test/widget_test.dart b/test/widget_test.dart index 4a97701..826f4f9 100644 --- a/test/widget_test.dart +++ b/test/widget_test.dart @@ -5,26 +5,110 @@ // gestures. You can also use WidgetTester to find child widgets in the widget // tree, read text, and verify that the values of widget properties are correct. -import 'package:flutter/material.dart'; +import 'dart:ui'; + +import 'package:flutter/widgets.dart'; import 'package:flutter_test/flutter_test.dart'; +import 'package:zeta_flutter/zeta_flutter.dart'; import 'package:zeta_flutter_template/main.dart'; void main() { - testWidgets('Counter increments smoke test', (WidgetTester tester) async { + testWidgets('App runs', (WidgetTester tester) async { + // Build our app and trigger a frame. + await tester.pumpWidget(const MyApp()); + }); + + testWidgets('Bottom navigation bar works on small screen', (WidgetTester tester) async { + // Set the screen size to a small value + tester.view.devicePixelRatio = 1.0; + tester.view.physicalSize = const Size(481, 480); + + // Build our app and trigger a frame. + await tester.pumpWidget(const MyApp()); + await tester.pumpAndSettle(); + + // Find the bottom navigation bar widget + final bottomNavigationBarFinder = find.byType(ZetaNavigationBar); + + // Verify that the bottom navigation bar is present + expect(bottomNavigationBarFinder, findsOneWidget); + + // Perform a tap on the first item of the bottom navigation bar + await tester.tap(find.byIcon(ZetaIcons.content_round)); + await tester.pump(); + + // Verify that the first item is selected + expect(bottomNavigationBarFinder, findsOneWidget); + expect(tester.widget(bottomNavigationBarFinder).currentIndex, 0); + + // Perform a tap on the second item of the bottom navigation bar + await tester.tap(find.byIcon(ZetaIcons.star_round)); + await tester.pump(); + + // // Verify that the second item is selected + expect(bottomNavigationBarFinder, findsOneWidget); + expect(tester.widget(bottomNavigationBarFinder).currentIndex, 1); + }); + + testWidgets('Side navigation bar works on large screen', (WidgetTester tester) async { + // Set the screen size to a small value + tester.view.devicePixelRatio = 1.0; + tester.view.physicalSize = const Size(881, 480); + + // Build our app and trigger a frame. + await tester.pumpWidget(const MyApp()); + + // Find the bottom navigation bar widget + final navigationRailFinder = find.byType(ZetaNavigationRail); + + // Verify that the bottom navigation bar is present + expect(navigationRailFinder, findsOneWidget); + + // Perform a tap on the first item of the bottom navigation bar + await tester.tap(find.byIcon(ZetaIcons.content)); + await tester.pump(); + + // Verify that the first item is selected + expect(navigationRailFinder, findsOneWidget); + expect(tester.widget(navigationRailFinder).selectedIndex, 0); + + // Perform a tap on the second item of the bottom navigation bar + await tester.tap(find.byIcon(ZetaIcons.star)); + await tester.pump(); + + // // Verify that the second item is selected + expect(navigationRailFinder, findsOneWidget); + expect(tester.widget(navigationRailFinder).selectedIndex, 1); + }); + + testWidgets('Switching between light and dark mode', (WidgetTester tester) async { // Build our app and trigger a frame. await tester.pumpWidget(const MyApp()); - // Verify that our counter starts at 0. - expect(find.text('0'), findsOneWidget); - expect(find.text('1'), findsNothing); + // Find the switch widget + final switchFinder = find.byType(ZetaSwitch).first; + + // Verify that the switch is present + // expect(switchFinder, findsOneWidget); + + // Get the current brightness mode + final zetaFinder = find.byType(Zeta); + final initialBrightness = tester.widget(zetaFinder).brightness; + // final brightnessMode = tester.binding.window.platformBrightness; + + // Perform a tap on the switch to toggle the brightness mode + await tester.tap(switchFinder); + await tester.pump(); + + // Verify that the brightness mode has changed + expect(tester.widget(zetaFinder).brightness, isNot(initialBrightness)); - // Tap the '+' icon and trigger a frame. - await tester.tap(find.byIcon(Icons.add)); + // Perform another tap on the switch to toggle back to the original brightness mode + await tester.tap(switchFinder); await tester.pump(); - // Verify that our counter has incremented. - expect(find.text('0'), findsNothing); - expect(find.text('1'), findsOneWidget); + // Verify that the brightness mode has changed back to the original mode + expect(tester.widget(zetaFinder).brightness, initialBrightness); }); } From 1a311d60ac2f018f72ef98e632820b2811fc70b6 Mon Sep 17 00:00:00 2001 From: Luke Date: Thu, 22 Aug 2024 14:44:52 +0100 Subject: [PATCH 3/6] ci: Testing new verion of flutter-code-quality action --- .github/workflows/pull-request.yml | 2 +- coverage/lcov.info | 193 ----------------------------- 2 files changed, 1 insertion(+), 194 deletions(-) delete mode 100644 coverage/lcov.info diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 2e02b40..b0d4d52 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -28,7 +28,7 @@ jobs: # Uses the flutter-code-quality action to run code quality checks # This will return a status check to the pull request - - uses: ZebraDevs/flutter-code-quality@v1.0.8 + - uses: ZebraDevs/flutter-code-quality@fix/deleteLcov with: token: ${{secrets.GITHUB_TOKEN}} diff --git a/coverage/lcov.info b/coverage/lcov.info deleted file mode 100644 index d77ae87..0000000 --- a/coverage/lcov.info +++ /dev/null @@ -1,193 +0,0 @@ -SF:lib/main.dart -DA:14,2 -DA:16,1 -DA:17,1 -DA:21,1 -DA:23,1 -DA:25,1 -DA:26,1 -DA:27,1 -LF:8 -LH:8 -end_of_record -SF:lib/src/utils/routes.dart -DA:7,3 -DA:8,3 -DA:10,3 -DA:11,1 -DA:12,1 -DA:13,1 -DA:14,1 -DA:15,1 -DA:16,2 -DA:18,1 -DA:19,1 -DA:20,1 -DA:22,1 -DA:24,1 -DA:25,3 -DA:26,1 -DA:27,2 -DA:32,1 -DA:36,1 -DA:39,1 -DA:40,1 -DA:41,1 -DA:42,2 -DA:43,2 -DA:49,1 -DA:53,1 -DA:54,2 -DA:55,2 -DA:66,1 -DA:67,1 -DA:68,1 -DA:69,1 -DA:70,1 -DA:72,1 -DA:76,1 -DA:77,1 -DA:78,1 -DA:79,1 -DA:81,1 -LF:39 -LH:39 -end_of_record -SF:lib/src/pages/example.dart -DA:5,1 -DA:7,1 -DA:8,1 -DA:15,1 -DA:17,2 -DA:19,1 -DA:20,1 -DA:21,1 -DA:22,1 -DA:23,4 -DA:28,1 -DA:30,1 -DA:33,1 -DA:35,1 -DA:43,1 -DA:44,1 -DA:46,1 -DA:47,1 -DA:48,1 -DA:49,1 -DA:50,1 -DA:51,1 -DA:52,1 -DA:53,1 -DA:56,1 -DA:58,1 -DA:59,1 -DA:60,1 -DA:62,0 -DA:63,0 -DA:72,1 -DA:73,0 -DA:74,0 -DA:75,0 -DA:77,0 -DA:84,1 -DA:85,1 -DA:87,0 -DA:89,1 -DA:90,1 -DA:91,1 -DA:92,1 -DA:97,1 -DA:98,1 -DA:100,1 -DA:102,1 -DA:103,1 -DA:104,1 -DA:106,1 -DA:108,0 -DA:110,1 -DA:113,0 -DA:114,0 -DA:116,1 -DA:118,1 -DA:119,1 -DA:120,0 -DA:121,0 -DA:124,1 -DA:125,1 -DA:127,1 -DA:128,1 -DA:129,1 -DA:131,1 -DA:132,1 -DA:139,1 -DA:140,1 -DA:142,1 -DA:143,8 -DA:148,1 -DA:149,0 -DA:150,1 -DA:151,1 -DA:152,1 -DA:155,1 -DA:157,2 -DA:158,0 -DA:166,1 -DA:167,1 -DA:168,1 -DA:170,0 -DA:171,0 -DA:174,1 -DA:178,0 -DA:180,1 -DA:188,0 -DA:189,1 -DA:190,1 -DA:191,1 -DA:192,1 -DA:198,1 -DA:200,1 -DA:201,1 -DA:202,2 -DA:203,2 -DA:204,2 -DA:205,2 -DA:206,2 -DA:207,1 -DA:209,1 -DA:211,1 -DA:212,1 -DA:213,1 -DA:214,1 -DA:215,1 -DA:216,1 -DA:220,1 -DA:221,1 -DA:223,1 -DA:225,1 -DA:226,1 -DA:234,1 -DA:235,1 -DA:237,1 -DA:239,0 -DA:242,1 -DA:243,1 -DA:248,0 -DA:249,0 -DA:250,0 -DA:253,1 -DA:266,1 -DA:267,1 -DA:269,1 -DA:271,1 -DA:272,1 -DA:273,1 -DA:279,1 -LF:128 -LH:106 -end_of_record -SF:lib/src/pages/home.dart -DA:5,1 -DA:7,1 -LF:2 -LH:2 -end_of_record From 772e331c0ebd4a942eb79b75ea2943ee9dc10954 Mon Sep 17 00:00:00 2001 From: github-actions Date: Thu, 22 Aug 2024 15:32:21 +0000 Subject: [PATCH 4/6] chore(automated): Lint commit and format --- .coverage/lcov.info | 192 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 192 insertions(+) create mode 100644 .coverage/lcov.info diff --git a/.coverage/lcov.info b/.coverage/lcov.info new file mode 100644 index 0000000..c7af7b3 --- /dev/null +++ b/.coverage/lcov.info @@ -0,0 +1,192 @@ +SF:lib/main.dart +DA:14,2 +DA:16,1 +DA:17,1 +DA:21,1 +DA:23,1 +DA:25,1 +DA:26,1 +DA:27,1 +LF:8 +LH:8 +end_of_record +SF:lib/src/utils/routes.dart +DA:7,3 +DA:8,3 +DA:10,3 +DA:11,1 +DA:12,1 +DA:13,1 +DA:14,1 +DA:15,1 +DA:16,2 +DA:18,1 +DA:19,1 +DA:20,1 +DA:22,1 +DA:24,1 +DA:25,3 +DA:26,1 +DA:27,2 +DA:32,1 +DA:36,1 +DA:39,1 +DA:40,1 +DA:41,1 +DA:42,2 +DA:43,2 +DA:49,1 +DA:53,1 +DA:54,2 +DA:55,2 +DA:66,1 +DA:67,1 +DA:68,1 +DA:69,1 +DA:70,1 +DA:72,1 +DA:76,1 +DA:77,1 +DA:78,1 +DA:79,1 +DA:81,1 +LF:39 +LH:39 +end_of_record +SF:lib/src/pages/example.dart +DA:5,1 +DA:7,1 +DA:8,1 +DA:15,1 +DA:17,2 +DA:19,1 +DA:20,1 +DA:21,1 +DA:22,1 +DA:27,1 +DA:29,1 +DA:32,1 +DA:34,1 +DA:42,1 +DA:43,1 +DA:45,1 +DA:46,1 +DA:47,1 +DA:48,1 +DA:49,1 +DA:50,1 +DA:51,1 +DA:52,1 +DA:55,1 +DA:57,1 +DA:58,1 +DA:59,1 +DA:61,0 +DA:62,0 +DA:71,1 +DA:72,0 +DA:73,0 +DA:74,0 +DA:76,0 +DA:83,1 +DA:84,1 +DA:86,0 +DA:88,1 +DA:89,1 +DA:90,1 +DA:91,1 +DA:96,1 +DA:97,1 +DA:99,1 +DA:101,1 +DA:102,1 +DA:103,1 +DA:105,1 +DA:107,0 +DA:109,1 +DA:112,0 +DA:113,0 +DA:115,1 +DA:117,1 +DA:118,1 +DA:119,0 +DA:120,0 +DA:123,1 +DA:124,1 +DA:126,1 +DA:127,1 +DA:128,1 +DA:130,1 +DA:131,1 +DA:138,1 +DA:139,1 +DA:141,1 +DA:142,8 +DA:147,1 +DA:148,0 +DA:149,1 +DA:150,1 +DA:151,1 +DA:154,1 +DA:156,2 +DA:157,0 +DA:165,1 +DA:166,1 +DA:167,1 +DA:169,0 +DA:170,0 +DA:173,1 +DA:177,0 +DA:179,1 +DA:187,0 +DA:188,1 +DA:189,1 +DA:190,1 +DA:191,1 +DA:197,1 +DA:199,1 +DA:200,1 +DA:201,2 +DA:202,2 +DA:203,2 +DA:204,2 +DA:205,2 +DA:206,1 +DA:208,1 +DA:210,1 +DA:211,1 +DA:212,1 +DA:213,1 +DA:214,1 +DA:215,1 +DA:219,1 +DA:220,1 +DA:222,1 +DA:224,1 +DA:225,1 +DA:233,1 +DA:234,1 +DA:236,1 +DA:238,0 +DA:241,1 +DA:242,1 +DA:247,0 +DA:248,0 +DA:249,0 +DA:252,1 +DA:265,1 +DA:266,1 +DA:268,1 +DA:270,1 +DA:271,1 +DA:272,1 +DA:278,1 +LF:127 +LH:105 +end_of_record +SF:lib/src/pages/home.dart +DA:5,1 +DA:7,1 +LF:2 +LH:2 +end_of_record From 82423fca543c60c998673fc8be06e545b6d6dcd4 Mon Sep 17 00:00:00 2001 From: Luke Date: Thu, 22 Aug 2024 16:46:30 +0100 Subject: [PATCH 5/6] 2 --- .coverage/lcov.info | 192 -------------------------------------------- 1 file changed, 192 deletions(-) delete mode 100644 .coverage/lcov.info diff --git a/.coverage/lcov.info b/.coverage/lcov.info deleted file mode 100644 index c7af7b3..0000000 --- a/.coverage/lcov.info +++ /dev/null @@ -1,192 +0,0 @@ -SF:lib/main.dart -DA:14,2 -DA:16,1 -DA:17,1 -DA:21,1 -DA:23,1 -DA:25,1 -DA:26,1 -DA:27,1 -LF:8 -LH:8 -end_of_record -SF:lib/src/utils/routes.dart -DA:7,3 -DA:8,3 -DA:10,3 -DA:11,1 -DA:12,1 -DA:13,1 -DA:14,1 -DA:15,1 -DA:16,2 -DA:18,1 -DA:19,1 -DA:20,1 -DA:22,1 -DA:24,1 -DA:25,3 -DA:26,1 -DA:27,2 -DA:32,1 -DA:36,1 -DA:39,1 -DA:40,1 -DA:41,1 -DA:42,2 -DA:43,2 -DA:49,1 -DA:53,1 -DA:54,2 -DA:55,2 -DA:66,1 -DA:67,1 -DA:68,1 -DA:69,1 -DA:70,1 -DA:72,1 -DA:76,1 -DA:77,1 -DA:78,1 -DA:79,1 -DA:81,1 -LF:39 -LH:39 -end_of_record -SF:lib/src/pages/example.dart -DA:5,1 -DA:7,1 -DA:8,1 -DA:15,1 -DA:17,2 -DA:19,1 -DA:20,1 -DA:21,1 -DA:22,1 -DA:27,1 -DA:29,1 -DA:32,1 -DA:34,1 -DA:42,1 -DA:43,1 -DA:45,1 -DA:46,1 -DA:47,1 -DA:48,1 -DA:49,1 -DA:50,1 -DA:51,1 -DA:52,1 -DA:55,1 -DA:57,1 -DA:58,1 -DA:59,1 -DA:61,0 -DA:62,0 -DA:71,1 -DA:72,0 -DA:73,0 -DA:74,0 -DA:76,0 -DA:83,1 -DA:84,1 -DA:86,0 -DA:88,1 -DA:89,1 -DA:90,1 -DA:91,1 -DA:96,1 -DA:97,1 -DA:99,1 -DA:101,1 -DA:102,1 -DA:103,1 -DA:105,1 -DA:107,0 -DA:109,1 -DA:112,0 -DA:113,0 -DA:115,1 -DA:117,1 -DA:118,1 -DA:119,0 -DA:120,0 -DA:123,1 -DA:124,1 -DA:126,1 -DA:127,1 -DA:128,1 -DA:130,1 -DA:131,1 -DA:138,1 -DA:139,1 -DA:141,1 -DA:142,8 -DA:147,1 -DA:148,0 -DA:149,1 -DA:150,1 -DA:151,1 -DA:154,1 -DA:156,2 -DA:157,0 -DA:165,1 -DA:166,1 -DA:167,1 -DA:169,0 -DA:170,0 -DA:173,1 -DA:177,0 -DA:179,1 -DA:187,0 -DA:188,1 -DA:189,1 -DA:190,1 -DA:191,1 -DA:197,1 -DA:199,1 -DA:200,1 -DA:201,2 -DA:202,2 -DA:203,2 -DA:204,2 -DA:205,2 -DA:206,1 -DA:208,1 -DA:210,1 -DA:211,1 -DA:212,1 -DA:213,1 -DA:214,1 -DA:215,1 -DA:219,1 -DA:220,1 -DA:222,1 -DA:224,1 -DA:225,1 -DA:233,1 -DA:234,1 -DA:236,1 -DA:238,0 -DA:241,1 -DA:242,1 -DA:247,0 -DA:248,0 -DA:249,0 -DA:252,1 -DA:265,1 -DA:266,1 -DA:268,1 -DA:270,1 -DA:271,1 -DA:272,1 -DA:278,1 -LF:127 -LH:105 -end_of_record -SF:lib/src/pages/home.dart -DA:5,1 -DA:7,1 -LF:2 -LH:2 -end_of_record From d069dc539ccd9c607e6e232d25fe512af338d5fb Mon Sep 17 00:00:00 2001 From: github-actions Date: Thu, 22 Aug 2024 16:00:21 +0000 Subject: [PATCH 6/6] chore(automated): Lint commit and format --- .github/workflows/pull-request.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index b0d4d52..7b9357c 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -28,7 +28,7 @@ jobs: # Uses the flutter-code-quality action to run code quality checks # This will return a status check to the pull request - - uses: ZebraDevs/flutter-code-quality@fix/deleteLcov + - uses: ZebraDevs/flutter-code-quality@v1.0.9 with: token: ${{secrets.GITHUB_TOKEN}}