Skip to content

Add Flutter sample

Add Flutter sample #2

name: flutter_sample
permissions: read-all
on:
push:
branches: [ main ]
paths:
- '.github/workflows/flutter_sample.yml'
- 'samples/flutter_app/**'
pull_request:
branches: [ main ]
paths:
- '.github/workflows/flutter_sample.yml'
- 'samples/flutter_app/**'
schedule:
- cron: '0 0 * * 0' # weekly
jobs:
validate:
runs-on: ubuntu-latest
defaults:
run:
working-directory: samples/flutter_app/
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- uses: subosito/flutter-action@02b923c0e1a5868734f1d56fa4083c3be4f554f3
with:
channel: main
- run: flutter pub get
- run: flutter analyze --fatal-infos
- run: dart format --set-exit-if-changed .
- run: flutter build web
- run: flutter test