Skip to content

Feature/Migrate to arb_generator from flappy_translator #36

Feature/Migrate to arb_generator from flappy_translator

Feature/Migrate to arb_generator from flappy_translator #36

Workflow file for this run

name: pull_request
on: pull_request
jobs:
lint-unit-test:
name: Lint + Unit Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: kuhnroyal/flutter-fvm-config-action@v1
id: fvm-config-action
- uses: subosito/flutter-action@v2
with:
flutter-version: ${{ steps.fvm-config-action.outputs.FLUTTER_VERSION }}
channel: ${{ steps.fvm-config-action.outputs.FLUTTER_CHANNEL }}
# the arb files aren't under source control, generate them
- name: Generate arb files
run: dart run arb_generator
- name: Install packages
run: flutter pub get
- name: Lint
run: flutter analyze
- name: Unit tests
run: flutter test
build-Android:
name: Build Android
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: kuhnroyal/flutter-fvm-config-action@v1
id: fvm-config-action
- uses: subosito/flutter-action@v2
with:
flutter-version: ${{ steps.fvm-config-action.outputs.FLUTTER_VERSION }}
channel: ${{ steps.fvm-config-action.outputs.FLUTTER_CHANNEL }}
# the arb files aren't under source control, generate them
- name: Generate arb files
run: dart run arb_generator
- name: Build apk
run: flutter build apk --release --split-per-abi
build-iOS:
name: Build iOS
runs-on: macOS-latest
steps:
- uses: actions/checkout@v1
- uses: kuhnroyal/flutter-fvm-config-action@v1
id: fvm-config-action
- uses: subosito/flutter-action@v2
with:
flutter-version: ${{ steps.fvm-config-action.outputs.FLUTTER_VERSION }}
channel: ${{ steps.fvm-config-action.outputs.FLUTTER_CHANNEL }}
# the arb files aren't under source control, generate them
- name: Generate arb files
run: dart run arb_generator
- name: Build ipa
run: flutter build ios --release --no-codesign
build-web:
name: Build Web
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: kuhnroyal/flutter-fvm-config-action@v1
id: fvm-config-action
- uses: subosito/flutter-action@v2
with:
flutter-version: ${{ steps.fvm-config-action.outputs.FLUTTER_VERSION }}
channel: ${{ steps.fvm-config-action.outputs.FLUTTER_CHANNEL }}
# the arb files aren't under source control, generate them
- name: Generate arb files
run: dart run arb_generator
- name: Build web
run: flutter build web --release