-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added github ci actions * Added Flutter CI check badge in README.md Co-authored-by: Nishtha Bodani <nbodani8@gmail.com>
- Loading branch information
1 parent
f3dee75
commit d193bf6
Showing
2 changed files
with
55 additions
and
5 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,49 @@ | ||
name: Flutter CI | ||
|
||
on: | ||
push: | ||
branches: [master, development] | ||
pull_request: | ||
branches: [master, development] | ||
|
||
jobs: | ||
test: | ||
strategy: | ||
matrix: | ||
platform: [windows-latest, ubuntu-latest, macos-latest] | ||
runs-on: ${{matrix.platform}} | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-java@v1 | ||
with: | ||
java-version: "12.x" | ||
- uses: subosito/flutter-action@v1 | ||
with: | ||
flutter-version: '2.5.0' | ||
- run: flutter pub get | ||
- run: flutter format --set-exit-if-changed . | ||
- run: flutter analyze . | ||
# - run: flutter test | ||
|
||
build: | ||
strategy: | ||
matrix: | ||
platform: [windows-latest, macos-latest, ubuntu-latest] | ||
runs-on: ${{matrix.platform}} | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-java@v1 | ||
with: | ||
java-version: "12.x" | ||
- uses: subosito/flutter-action@v1 | ||
with: | ||
flutter-version: '2.5.0' | ||
- run: flutter pub get | ||
- run: flutter format --set-exit-if-changed . | ||
- run: flutter analyze . | ||
# - run: flutter test | ||
# - run: flutter build apk | ||
# - uses: actions/upload-artifact@v1 | ||
# with: | ||
# name: release-apk | ||
# path: build/app/outputs/apk/release/app-release.apk |
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