Version 2.0 #361
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
name: emoji_picker_flutter | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
env: | |
flutter_version: "3.16.0" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Cancel Previous Runs | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{ github.token }} | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-java@v1 | |
with: | |
java-version: "12.x" | |
- name: Init Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: ${{ env.flutter_version }} | |
channel: "stable" | |
cache: true | |
cache-key: flutter-install-cache-${{ env.flutter_version }} | |
- name: Install Dependencies | |
run: flutter pub get | |
- name: Format | |
run: dart format --set-exit-if-changed lib test example | |
- name: Analyze | |
run: flutter analyze lib test example | |
- name: Run tests | |
run: flutter test | |
- name: Build Android APK | |
working-directory: ./example | |
run: flutter build apk |