Update graph.dart #204
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 | |
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 |