ci: make test work again #282
Workflow file for this run
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: supabase_flutter | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'packages/supabase_flutter/**' | |
- '.github/workflows/supabase_flutter.yaml' | |
- 'packages/functions_client/**' | |
- 'packages/gotrue/**' | |
- 'packages/postgrest/**' | |
- 'packages/realtime_client/**' | |
- 'packages/storage_client/**' | |
- 'packages/supabase/**' | |
pull_request: | |
paths: | |
- 'packages/supabase_flutter/**' | |
- '.github/workflows/supabase_flutter.yaml' | |
- 'packages/functions_client/**' | |
- 'packages/gotrue/**' | |
- 'packages/postgrest/**' | |
- 'packages/realtime_client/**' | |
- 'packages/storage_client/**' | |
- 'packages/supabase/**' | |
jobs: | |
test: | |
name: Test Flutter v${{ matrix.flutter-version }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest] | |
flutter-version: ['3.0.0', '3.x'] | |
defaults: | |
run: | |
working-directory: packages/supabase_flutter | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checks-out repo | |
uses: actions/checkout@v2 | |
- uses: actions/setup-java@v1 | |
with: | |
java-version: '12.x' | |
- uses: subosito/flutter-action@v1 | |
with: | |
flutter-version: ${{ matrix.flutter-version }} | |
channel: 'stable' | |
- name: Bootstrap workspace | |
run: | | |
cd ../../ | |
dart pub global activate melos | |
melos bootstrap | |
- name: flutterfmt | |
if: ${{ matrix.sdk == '3.x'}} | |
run: dart format lib test -l 80 --set-exit-if-changed | |
- name: analyzer | |
run: flutter analyze --fatal-warnings --fatal-infos . | |
- name: Run tests | |
run: flutter test |