-
-
Notifications
You must be signed in to change notification settings - Fork 956
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e23f769
commit 6f898c0
Showing
5 changed files
with
63 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ on: | |
push: | ||
branches: | ||
- master | ||
- dev | ||
paths-ignore: | ||
- "**.md" | ||
- "**.mdx" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Check CHANGELOG.md | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- dev | ||
pull_request: | ||
|
||
|
||
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 "semantic_changelog" | ||
run: dart pub global activate -s git https://github.com/rrousselGit/semantic_changelog | ||
|
||
- run: git fetch origin master:refs/remotes/origin/master | ||
- run: semantic_changelog check origin/master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ on: | |
push: | ||
branches: | ||
- master | ||
- dev | ||
paths-ignore: | ||
- "**.md" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ on: | |
push: | ||
branches: | ||
- master | ||
- dev | ||
paths-ignore: | ||
- "**.md" | ||
schedule: | ||
|
28 changes: 28 additions & 0 deletions
28
packages/riverpod_generator/integration/build_yaml/test/build_yaml_test.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import 'package:build_yaml/main.dart'; | ||
import 'package:test/test.dart'; | ||
|
||
void main() { | ||
test('provider names', () { | ||
expect(countPod.name, 'countPod'); | ||
expect(countFuturePod.name, 'countFuturePod'); | ||
expect(countStreamPod.name, 'countStreamPod'); | ||
expect(countNotifierPod.name, 'countNotifierPod'); | ||
expect(countAsyncNotifierPod.name, 'countAsyncNotifierPod'); | ||
expect(countStreamNotifierPod.name, 'countStreamNotifierPod'); | ||
}); | ||
|
||
test('provider family names', () { | ||
expect(count2ProviderFamily.name, 'count2ProviderFamily'); | ||
expect(countFuture2ProviderFamily.name, 'countFuture2ProviderFamily'); | ||
expect(countStream2ProviderFamily.name, 'countStream2ProviderFamily'); | ||
expect(countNotifier2ProviderFamily.name, 'countNotifier2ProviderFamily'); | ||
expect( | ||
countAsyncNotifier2ProviderFamily.name, | ||
'countAsyncNotifier2ProviderFamily', | ||
); | ||
expect( | ||
countStreamNotifier2ProviderFamily.name, | ||
'countStreamNotifier2ProviderFamily', | ||
); | ||
}); | ||
} |