Skip to content

Instantly share code, notes, and snippets.

@ShaiqAhmedkhan
Last active June 10, 2020 07:16
Show Gist options
  • Save ShaiqAhmedkhan/96b30c462914b167912974eb7158b0f3 to your computer and use it in GitHub Desktop.
Save ShaiqAhmedkhan/96b30c462914b167912974eb7158b0f3 to your computer and use it in GitHub Desktop.
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