From 6773fef57f1eefc8b9b8716f1f88d1a72956e8a2 Mon Sep 17 00:00:00 2001 From: git-elliot Date: Sun, 17 Nov 2024 07:55:52 +0530 Subject: [PATCH] updated gha --- .github/workflows/dart.yml | 7 +++++-- .github/workflows/publish.yml | 3 +++ pubspec.yaml | 2 ++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dart.yml b/.github/workflows/dart.yml index c824dc6..1ff1e00 100644 --- a/.github/workflows/dart.yml +++ b/.github/workflows/dart.yml @@ -36,8 +36,11 @@ jobs: run: dart pub get # Uncomment this step to verify the use of 'dart format' on each commit. - # - name: Verify formatting - # run: dart format --output=none --set-exit-if-changed . + - name: Verify formatting + run: dart format --output=none --set-exit-if-changed . + + - name: Run build_runner + run: dart run build_runner build # Consider passing '--fatal-infos' for slightly stricter analysis. - name: Analyze project source diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index aaa001f..618f46a 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -21,6 +21,9 @@ jobs: - name: Install dependencies run: dart pub get + - name: Run build_runner + run: dart run build_runner build + - name: Analyze project source run: dart analyze --fatal-infos diff --git a/pubspec.yaml b/pubspec.yaml index 1ab309d..57afff7 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -42,6 +42,8 @@ dependencies: dev_dependencies: + # provides a concrete way of generating files using Dart code + build_runner: ^2.4.13 # Provides Dart Build System builders for handling JSON. json_serializable: ^6.8.0 # Set of lint rules for Dart.