Merge pull request #6 from tappeddev/fix-deprecated-devices #28
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: tapped_toolkit | |
on: [push] | |
# Cancel previous builds by only allowing one concurrent build per ref. | |
concurrency: | |
group: tapped_test_toolkit-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
analyze: | |
timeout-minutes: 5 | |
runs-on: ubuntu-20.04 | |
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: Get all dependencies | |
run: flutter pub get | |
- name: analyze app | |
run: flutter analyze | |
format: | |
timeout-minutes: 5 | |
runs-on: ubuntu-20.04 | |
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: Get all dependencies | |
run: flutter pub get | |
- name: Check formatting | |
run: dart format -o none --set-exit-if-changed $(find . -name '*.dart' ! -name '*.g.dart' ! -name '*.freezed.dart' ! -path '*/generated/*' ! -path '*/gen/*') |