-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: implement github actions with flutter test, analyze and build
naif/add_dart_new_features_to_code_generator (#244) - add dart new features to the code generator bassam/migrate_flutter_version_to_3_10 (#261) - migrate flutter version to 3.10.0 fix: deriv_dependency_injector versioning (#284) deps: update `deriv_dependency_injector` ci: integrate github actions ci: integrate github actions ci: fix pub get issue ci: fix pub get issue ci: remove unnecessary checkout ci: remove circle ci bassam/migrate_flutter_version_to_3_10 (#261) - migrate flutter version to 3.10.0 fix: deriv_dependency_injector versioning (#284)
- Loading branch information
1 parent
b5a88b6
commit 88a99c5
Showing
3 changed files
with
49 additions
and
85 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,47 @@ | ||
name: Flutter Analyze, Test, and Build | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- dev | ||
pull_request: | ||
branches: | ||
- "*" | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build: | ||
runs-on: "ubuntu-latest" | ||
steps: | ||
- name: 📚 Git Checkout | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | ||
|
||
- name: 🐦 Setup Flutter | ||
uses: subosito/flutter-action@48cafc24713cca54bbe03cdc3a423187d413aafa | ||
with: | ||
flutter-version: "3.10.2" | ||
channel: stable | ||
cache: true | ||
cache-key: flutter-:os:-:channel:-:version:-:arch:-:hash:-${{ hashFiles('**/pubspec.lock') }} | ||
|
||
- name: 📦 Install Dependencies | ||
run: flutter pub get | ||
|
||
# do not fail if the analyze issue is info level | ||
- name: 🕵️ Analyze | ||
run: | | ||
if flutter analyze 2>&1 | grep -q -E 'error:|warning:'; | ||
then exit 1 | ||
else exit 0 | ||
fi | ||
- name: 🧪 Run Tests | ||
run: flutter test | ||
|
||
- name: Build Example app | ||
working-directory: ./example | ||
run: flutter build apk --target-platform android-arm |
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 |
---|---|---|
|
@@ -16,9 +16,8 @@ dependencies: | |
|
||
deriv_dependency_injector: | ||
git: | ||
url: [email protected]:regentmarkets/flutter-deriv-packages.git | ||
path: packages/deriv_dependency_injector | ||
ref: dev | ||
url: https://github.com/deriv-com/deriv-dependency-injector.git | ||
ref: master | ||
|
||
build: ^2.3.1 | ||
dart_style: ^2.3.0 | ||
|