Merge pull request #2 from tappeddev/fix-scrolling-2-stefan #16
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: check | |
on: | |
push: | |
branches: | |
- dev | |
- main | |
pull_request: | |
# Cancel previous builds by only allowing one concurrent build per ref. | |
concurrency: | |
group: continuous_ops_check-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
analyze: | |
timeout-minutes: 5 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: kuhnroyal/flutter-fvm-config-action@v1 | |
with: | |
path: '.fvm/fvm_config.json' | |
- uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: ${{ env.FLUTTER_VERSION }} | |
channel: ${{ env.FLUTTER_CHANNEL }} | |
- name: Analyze app | |
run: | | |
flutter pub get | |
cd example | |
flutter pub get | |
cd .. | |
flutter analyze | |
#format | |
format: | |
timeout-minutes: 5 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: kuhnroyal/flutter-fvm-config-action@v1 | |
with: | |
path: '.fvm/fvm_config.json' | |
- uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: ${{ env.FLUTTER_VERSION }} | |
channel: ${{ env.FLUTTER_CHANNEL }} | |
- name: Check formatting | |
run: find . -name "*.dart" ! -name "*.g.dart" ! -name "*.freezed.dart" ! -path '*/generated/*' ! -path '*/gen/*' | xargs dart format --set-exit-if-changed | |
#tests |