Skip to content

Commit

Permalink
Support generated types / type aliases / typedefs in riverpod_generat…
Browse files Browse the repository at this point in the history
…or (#2934)
  • Loading branch information
rrousselGit authored Sep 30, 2023
1 parent 2943adf commit bd4e1d8
Show file tree
Hide file tree
Showing 224 changed files with 2,215 additions and 963 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/check_generation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Check code-generation

on:
pull_request:
paths-ignore:
- "**.md"
push:
branches:
- master
paths-ignore:
- "**.md"

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/[email protected]
with:
fetch-depth: 2
- uses: subosito/[email protected]
with:
channel: master

- name: Add pub cache bin to PATH
run: echo "$HOME/.pub-cache/bin" >> $GITHUB_PATH
- name: Add pub cache to PATH
run: echo "PUB_CACHE="$HOME/.pub-cache"" >> $GITHUB_ENV
- name: Install dependencies
run: flutter pub get

- run: dart pub global activate melos

- run: dart pub run melos bootstrap
- run: dart pub run melos run generate

- name: check there are no uncommitted changes
run: git diff --exit-code
2 changes: 1 addition & 1 deletion examples/counter/lib/main.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion examples/counter/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ dependencies:

dev_dependencies:
build_runner: ^2.3.3
build_verify: ^3.0.0
custom_lint: ^0.5.2
flutter_test:
sdk: flutter
Expand Down
1 change: 0 additions & 1 deletion examples/marvel/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ dependencies:

dev_dependencies:
build_runner: ^2.0.0
build_verify: ^3.0.0
flutter_test:
sdk: flutter
freezed: ^2.1.0
Expand Down
10 changes: 0 additions & 10 deletions examples/marvel/test/ensuire_build_test.dart

This file was deleted.

2 changes: 1 addition & 1 deletion examples/pub/lib/detail.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit bd4e1d8

Please sign in to comment.