Skip to content

⚡️ Improve melos and workflow setup #714

⚡️ Improve melos and workflow setup

⚡️ Improve melos and workflow setup #714

Workflow file for this run

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
- run: melos run test:all