-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* test: Add User Model unittest flutter test=+4: All tests passed! * build: add GitHub Actions for Flutter analyze and test
- Loading branch information
Showing
17 changed files
with
311 additions
and
8 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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Flutter Build And Test | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- unittest | ||
pull_request: | ||
branches: | ||
- main | ||
jobs: | ||
build: | ||
name: Analyze and Test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Setup Flutter | ||
uses: subosito/[email protected] | ||
with: | ||
flutter-version: 3.24.4 | ||
channel: stable | ||
- name: Setup Dart | ||
uses: dart-lang/[email protected] | ||
with: | ||
dart-version: 3.5.4 | ||
- name: Install dependencies | ||
run: flutter pub get | ||
- name: Analyze | ||
run: flutter analyze | ||
- name: Run tests | ||
run: flutter test | ||
# - name: Build APK | ||
# run: flutter build apk --release --target lib/main/main_prod.dart | ||
# - name: Build Android App Bundle | ||
# run: flutter build appbundle --release --target lib/main/main_prod.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
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
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
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
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
Empty file.
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
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
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
Oops, something went wrong.