Kotlinize flutter_custom_tabs_android
package plugin
#113
Workflow file for this run
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: CI for android implementation package | |
on: | |
push: | |
branches: [ main ] | |
paths: | |
- 'flutter_custom_tabs_android/**' | |
- '.github/workflows/android_implementation_package.yml' | |
- '!**.md' | |
pull_request: | |
paths: | |
- 'flutter_custom_tabs_android/**' | |
- '.github/workflows/android_implementation_package.yml' | |
- '!**.md' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version: 17 | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v3 | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: 'stable' | |
# This workflow is designed to avoid lint errors in Flutter version 3.27.0 and later. | |
# ref. https://github.com/flutter/flutter/issues/159739 | |
flutter-version: 3.24.0 | |
- name: Get flutter dependencies | |
run: flutter pub get | |
working-directory: ./flutter_custom_tabs_android | |
- name: Check for any formatting issues in the code | |
run: dart format -o none --set-exit-if-changed $(find ./lib ./test -name "*.dart" -not -name "*.*g.dart") | |
working-directory: ./flutter_custom_tabs_android | |
- name: Statically analyze the Dart code for any errors | |
run: flutter analyze . | |
working-directory: ./flutter_custom_tabs_android | |
- name: Run Flutter unit tests | |
run: flutter test | |
working-directory: ./flutter_custom_tabs_android | |
- name: Build example android app | |
run: flutter build apk --release | |
working-directory: ./flutter_custom_tabs_android/example | |
- name: Run Android unit tests | |
run: ./gradlew :flutter_custom_tabs_android:testDebugUnitTest | |
working-directory: ./flutter_custom_tabs_android/example/android |