Last active
March 2, 2025 14:47
-
-
Save lucasdanbatista/7bc98983d0ef72a2d32fe7337bc37220 to your computer and use it in GitHub Desktop.
Pipelines for Flutter
This file contains hidden or 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: Firebase App Distribution | |
on: | |
push: | |
branches: [ 'main' ] | |
jobs: | |
build: | |
name: Firebase App Distribution | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: subosito/flutter-action@v2 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: temurin | |
java-version: 17 | |
- name: Build apk | |
run: flutter build apk --profile | |
- name: Distribute artifacts | |
uses: wzieba/Firebase-Distribution-Github-Action@v1 | |
with: | |
appId: ${{ secrets.FIREBASE_ANDROID_APP_ID }} | |
serviceCredentialsFileContent: ${{ secrets.FIREBASE_APP_DISTRIBUTION_CREDENTIALS }} | |
groups: internal | |
file: build/app/outputs/flutter-apk/app-profile.apk | |
releaseNotes: ${{ github.event.head_commit.message }} |
This file contains hidden or 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: Flutter | |
on: | |
push: | |
branches: [ 'main' ] | |
pull_request: | |
branches: [ 'main' ] | |
jobs: | |
build: | |
name: Flutter | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: subosito/flutter-action@v2 | |
- uses: hrishikesh-kadam/setup-lcov@v1 | |
- name: Install dependencies | |
run: flutter pub get | |
- name: Verify formatting | |
run: dart format --output=none --set-exit-if-changed . | |
- name: Generate files | |
run: dart run build_runner build | |
- name: Analyze project | |
run: flutter analyze | |
- name: Run tests | |
run: flutter test --coverage | |
- name: Check coverage | |
run: lcov --fail-under-lines 80 --summary coverage/lcov.info |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment