⚡️ Improve melos and workflow setup #717
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: Tests | |
on: | |
push: | |
branches: | |
- main | |
- '6.0.0' | |
paths-ignore: | |
- "**.md" | |
pull_request: | |
branches: | |
- main | |
- '6.0.0' | |
paths-ignore: | |
- "**.md" | |
jobs: | |
format_analyze: | |
name: Format & Analyze | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: subosito/[email protected] | |
with: | |
cache: true | |
channel: stable | |
- uses: bluefireteam/melos-action@v2 | |
- run: melos run format:all && melos run analyze:all | |
test: | |
needs: [format_analyze] | |
name: Run unit tests | |
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 }} | |
- uses: bluefireteam/melos-action@v2 | |
- 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: melos run test:all |