-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create flutter_browserstack_android.yml
- Loading branch information
Showing
1 changed file
with
49 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time | ||
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven | ||
|
||
# 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: Flutter Browserstack Android Build | ||
|
||
defaults: | ||
run: | ||
working-directory: das_client | ||
|
||
on: | ||
push: | ||
paths: | ||
- 'das_client/**' | ||
branches: [ "feature/das-client-durchstich" ] | ||
pull_request: | ||
paths: | ||
- 'das_client/**' | ||
branches: [ "main" ] | ||
|
||
jobs: | ||
build: | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '17' | ||
- uses: subosito/flutter-action@v2 | ||
with: | ||
flutter-version: '3.22.2' | ||
- run: flutter pub get | ||
- run: flutter pub run build_runner build --delete-conflicting-outputs | ||
- shell: bash | ||
env: | ||
MQTT_USERNAME: ${{ secrets.MQTT_USERNAME }} | ||
MQTT_PASSWORD: ${{ secrets.MQTT_PASSWORD }} | ||
run: | | ||
flutter build apk --flavor dev -t integration_test/app_test.dart --no-tree-shake-icons --debug --dart-define=MQTT_USERNAME=$MQTT_USERNAME --dart-define=MQTT_PASSWORD=$MQTT_PASSWORD | ||
- name: browserstack | ||
uses: Grodien/browserstack-flutter-action@v1.0 | ||
with: | ||
browserstackUsername: "asdf" | ||
browserstackAccessKey: "asdf" |