Skip to content

Update pubspec.yaml #66

Update pubspec.yaml

Update pubspec.yaml #66

name: Flutter CI
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 12
uses: actions/setup-java@v2
with:
java-version: '12.x'
distribution: 'adopt'
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
channel: 'beta'
- name: Create new Flutter project
run: |
flutter create -t app new_project
rsync -av --exclude='new_project' . new_project/
cd new_project
- name: Update dependencies
run: |
flutter pub upgrade
flutter pub outdated
- name: Get Flutter dependencies
run: flutter pub get
- name: Run flutter pub outdated
run: flutter pub outdated
#- name: Check for formatting issues
# run: flutter format --set-exit-if-changed .
#- name: Analyze Dart code
# run: flutter analyze .
#- name: Run tests
# run: flutter test
- name: Clean build directory
run: flutter clean
- name: Build debug APK
run: flutter build apk --debug
- name: Upload debug APK
uses: actions/upload-artifact@v2
with:
name: debug-apk
path: build/app/outputs/flutter-apk/app-debug.apk