Skip to content

Upgrade to Flutter 3.16.5 and latest supported plugins. Google API st… #123

Upgrade to Flutter 3.16.5 and latest supported plugins. Google API st…

Upgrade to Flutter 3.16.5 and latest supported plugins. Google API st… #123

Workflow file for this run

# based on https://poetryincode.dev/testing-dart-packages-with-github-actions and
# https://github.com/marketplace/actions/deploy-flutter-web-app-to-github-pages
name: Test And Publish
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ main ]
pull_request:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
test_pub:
runs-on: ubuntu-latest # was macos-latest to maximize misc plugin support
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Install Flutter
uses: subosito/flutter-action@v1.5.3
with:
flutter-version: '2.5.1'
- name: Pull dependencies
run: flutter pub get
- name: Test app
run: flutter test --coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: coverage/lcov.info
- name: Publish Flutter Web App
uses: bluefireteam/flutter-gh-pages@v7
with:
webRenderer: html