⚡️ Improve melos and workflow setup #777
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: Format & Analyze & Dry-run & Test | |
on: | |
push: | |
branches: | |
- main | |
- '6.0.0' | |
paths-ignore: | |
- "**.md" | |
pull_request: | |
branches: | |
- main | |
- '6.0.0' | |
paths-ignore: | |
- "**.md" | |
jobs: | |
workflows: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
sdk: [ min, stable, beta ] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: subosito/[email protected] | |
with: | |
cache: true | |
flutter-version: ${{ matrix.sdk == 'min' && '2.8.0' || '' }} | |
channel: ${{ matrix.sdk == 'min' && '' || matrix.channel }} | |
- run: | | |
chmod +x ./scripts/prepare_pinning_certs.sh | |
./scripts/prepare_pinning_certs.sh | |
shell: bash | |
- name: Install proxy for tests | |
run: sudo apt-get install -y squid | |
- run: dart pub get | |
- uses: bluefireteam/melos-action@v2 | |
with: | |
run-bootstrap: false | |
- name: Patching files for Flutter ${{ matrix.sdk }} | |
run: melos run files-patch | |
- name: Customized Melos Bootstrap | |
run: melos run pre-bootstrap | |
- name: Format | |
run: melos run format | |
- name: Analyze Dart packages | |
run: melos run analyze-dart | |
- name: Analyze Flutter packages | |
run: melos run analyze-flutter | |
- name: Publish dry-run | |
run: melos run dry-run | |
- name: Test Dart packages | |
run: melos run test-dart | |
- name: Test Flutter packages | |
run: melos run test-flutter |