Skip to content

- Auto-refresh only when app is in foreground. #92

- Auto-refresh only when app is in foreground.

- Auto-refresh only when app is in foreground. #92

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: CD
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: src/robinhood_options_mobile
steps:
- uses: actions/checkout@v2
#- uses: dart-lang/setup-dart@v1
- uses: actions/setup-java@v1
with:
java-version: '12.x'
- uses: subosito/flutter-action@v1
with:
channel: 'stable'
- name: Install dependencies
run: flutter pub get
# Uncomment this step to verify the use of 'dart format' on each commit.
# - name: Verify formatting
# run: dart format --output=none --set-exit-if-changed .
# Consider p assing '--fatal-infos' for slightly stricter analysis.
- name: Analyze project source
run: flutter analyze
continue-on-error: false
# Your project will need to have tests in test/ and a dependency on
# package:test for this step to succeed. Note that Flutter projects will
# want to change this to 'flutter test'.
- name: Run tests
run: flutter test
continue-on-error: true
- name: Build Android APK
run: flutter build apk --release
continue-on-error: false
- name: Upload Android APK Build Artifact
uses: actions/upload-artifact@v2.2.4
with:
# Artifact name
name: release-apk
# A file, directory or wildcard pattern that describes what to upload
path: src/robinhood_options_mobile/build/app/outputs/flutter-apk/app-release.apk
# The desired behavior if no files are found using the provided path.
continue-on-error: false
- name: Build iOS IPA
id: build-ipa
run: flutter build ipa
continue-on-error: false
- name: Upload iOS IPA Build Artifact
uses: actions/upload-artifact@v2.2.4
with:
# Artifact name
name: release-ipa
# A file, directory or wildcard pattern that describes what to upload
path: src/robinhood_options_mobile/build/ios/ipa/robinhood_options_mobile.ipa
# The desired behavior if no files are found using the provided path.
continue-on-error: false
# - name: Build AppBundle
# id: build
# run: flutter build appbundle --build-number=`git rev-list --count HEAD`
# continue-on-error: false
# - name: Upload App Bundle (.aab) Build Artifact
# uses: actions/upload-artifact@v2.2.4
# with:
# name: release-aab
# path: src/robinhood_options_mobile/build/app/outputs/bundle/release/app-release.aab
# continue-on-error: false
# - name: Upload to Play Store
# uses: r0adkll/upload-google-play@v1.0.15
# with:
# serviceAccountJsonPlainText: ${{ secrets.PLAY_STORE_UPLOAD_SERVICE_ACCOUNT_JSON }}
# packageName: com.gdgkansascity.flutter_ci
# releaseFiles: ${{ steps.build.outputs.bundlePath }}
# track: internal