Add language support for en, de, es, fr, hi, pt, it, ja, ru, zh and more #442
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.24.0" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Cancel Previous Runs | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{ github.token }} | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'adopt' | |
java-version: "17" | |
- 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 |