Last active
June 10, 2020 07:16
-
-
Save ShaiqAhmedkhan/96b30c462914b167912974eb7158b0f3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
name: CI | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/setup-java@v1 | |
with: | |
java-version: '12.x' | |
- uses: subosito/flutter-action@v1 | |
with: | |
channel: 'beta' | |
# Get flutter dependencies. | |
- run: flutter pub get | |
# Check for any formatting issues in the code. | |
- run: flutter format --set-exit-if-changed . | |
# Statically analyze the Dart code for any errors. | |
- run: flutter analyze . | |
# Run widget tests for our flutter project. | |
- run: flutter test | |
# Build apk. | |
- run: flutter build apk | |
# Upload generated apk to the artifacts. | |
uses: actions/upload-artifact@master | |
with: | |
name: apk-release | |
path: build/app/outputs/bundle/release/app-release.apk |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment