Skip to content

Merge pull request #62 from weblate/weblate-fucks-given-fucks-given #203

Merge pull request #62 from weblate/weblate-fucks-given-fucks-given

Merge pull request #62 from weblate/weblate-fucks-given-fucks-given #203

Workflow file for this run

name: CI
on: push
jobs:
build:
name: "πŸ— Build"
runs-on: ubuntu-latets
steps:
- name: "πŸ“₯ Check-out"
uses: actions/checkout@v4
- name: "🧰 Install Java"
uses: actions/setup-java@v3
with:
java-version: "8"
- name: "🧰 Install Flutter"
uses: subosito/flutter-action@v2
with:
channel: "stable"
run: flutter --version
- name: "πŸ‘€ Disable tracking"
run: flutter config --no-analytics
# - name: "πŸ”‘ Add secrets"
# shell: bash
# env:
# GOOGLE_CLIENT_ID: ${{ secrets.GOOGLE_CLIENT_ID }}
# GOOGLE_CLIENT_SECRET: ${{ secrets.GOOGLE_CLIENT_SECRET }}
# run: |
# cat <<EOT >> secrets.yaml
# google:
# clientId: "$GOOGLE_CLIENT_ID"
# clientSecret: "$GOOGLE_CLIENT_SECRET"
# EOT
- name: "🧰 Install dependencies"
run: flutter pub get
- name: "πŸ— Build AOT Dart code"
run: flutter build aot
- name: "πŸ— Build Android App Bundle"
run: flutter build appbundle
- name: "πŸ— Build Android APK"
run: flutter build apk
- name: "βœ… Analyze"
run: flutter analyze
- name: "βœ… Test"
run: flutter test --coverage
- name: "πŸ“€ Upload test coverage report"
uses: actions/upload-artifact@v3
with:
name: "Test coverage report"
path: coverage/lcov.info
- name: "πŸ“€ Upload test coverage report to Codecov.io"
uses: codecov/codecov-action@v4
if: runner.os == 'Linux'
with:
token: ${{secrets.CODECOV_TOKEN}}
file: coverage/lcov.info
- name: "πŸ“€ Upload Android App Bundle"
uses: actions/upload-artifact@v3
with:
name: "Android App Bundle"
path: build/app/outputs/bundle/release/app-release.aab
- name: "πŸ“€ Upload Android APK"
uses: actions/upload-artifact@v3
with:
name: "Android APK"
path: build/app/outputs/apk/release/app-release.apk