-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from ngthailam/tech/6/Add_CI_CD
[Tech#6] Add CI
- Loading branch information
Showing
3 changed files
with
45 additions
and
3 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,44 @@ | ||
name: run Example CI | ||
|
||
|
||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
pull_request: | ||
branches: | ||
- '**' | ||
|
||
jobs: | ||
build: | ||
name: Test, build debug | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v1 | ||
|
||
- name: Setup Java | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: '12.x' | ||
|
||
- name: Setup Flutter | ||
uses: subosito/flutter-action@v1 | ||
with: | ||
flutter-version: '2.10.3' | ||
|
||
# Get flutter dependencies. | ||
- name: Download pub dependencies | ||
run: flutter pub get | ||
|
||
# Statically analyze the Dart code for any errors. | ||
- name: Run analyzer | ||
run: flutter analyze . | ||
|
||
# Run widget tests for our flutter project. | ||
- name: Run tests | ||
run: flutter test | ||
|
||
# Build apk. | ||
- name: Build debug apk | ||
run: cd example && flutter build apk --debug |
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