Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added github CI actions #28

Merged
merged 10 commits into from
Dec 28, 2021
49 changes: 49 additions & 0 deletions .github/workflows/flutter-ci.yml
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]
nb9960 marked this conversation as resolved.
Show resolved Hide resolved
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]
nb9960 marked this conversation as resolved.
Show resolved Hide resolved
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
nb9960 marked this conversation as resolved.
Show resolved Hide resolved
- run: flutter build apk
- uses: actions/upload-artifact@v1
with:
name: release-apk
path: build/app/outputs/apk/release/app-release.apk
nb9960 marked this conversation as resolved.
Show resolved Hide resolved