Skip to content

Commit 52e954b

Browse files
committed
💚 :: Adds code generation to CI/CD workflows
Ensures generated code is up-to-date during CI/CD by incorporating the `build_runner` step. This helps prevent analysis errors and ensures consistency.
1 parent 9171d35 commit 52e954b

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/jusicool_cd.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ jobs:
3737
- name: Install Dependencies
3838
run: flutter pub get
3939

40+
- name: Run Code Generation
41+
run: flutter pub run build_runner build --delete-conflicting-outputs
42+
4043
- name: Analyze project source
4144
run: flutter analyze
4245

.github/workflows/jusicool_ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ jobs:
3636
- name: Install Dependencies
3737
run: flutter pub get
3838

39+
- name: Run Code Generation
40+
run: flutter pub run build_runner build --delete-conflicting-outputs
41+
3942
- name: Analyze project source
4043
run: flutter analyze
4144

0 commit comments

Comments
 (0)