Add optimizationMode for BlurHashImage #8
This file contains hidden or 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: prepare | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: [master] | |
jobs: | |
main: | |
name: Flutter ${{ matrix.flutter-version }} | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
flutter-version: ["3.27.x", "3.29.x"] | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v4 | |
- name: Set up Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
channel: stable | |
flutter-version: ${{ matrix.flutter-version }} | |
- name: flutter pub get | |
run: flutter pub get | |
- name: dart format | |
run: dart format --set-exit-if-changed . | |
- name: flutter analyze | |
run: flutter analyze --no-fatal-infos | |
- name: flutter test | |
run: flutter test | |
- name: flutter pub get (example app) | |
working-directory: ./example | |
run: flutter pub get | |
- name: Build example app | |
working-directory: example | |
run: flutter build web | |
- name: Dry run pub publish | |
# We don't want it to fail the CI, it's just to see how would `pub publish` behave. | |
run: dart pub publish --dry-run || true |