name: Dart CI analyze and test on: push: branches: [master] pull_request: branches: [master] workflow_dispatch: env: PUB_ENVIRONMENT: bot.github jobs: analyze: runs-on: ubuntu-latest strategy: fail-fast: false steps: - uses: actions/checkout@v3.0.1 - uses: subosito/flutter-action@v2 with: channel: master - name: Install dependencies run: flutter pub get - name: Verify formatting run: flutter format --output=none --set-exit-if-changed . - name: Analyze source code run: flutter analyze --fatal-infos test: needs: analyze strategy: fail-fast: false matrix: platform: [ubuntu-latest, macos-latest, windows-latest] runs-on: ${{ matrix.platform }} steps: - name: Set git to use LF run: | git config --global core.autocrlf false git config --global core.eol lf - uses: actions/checkout@v3.0.1 - uses: subosito/flutter-action@v2 with: channel: master - name: Install dependencies run: flutter pub get - name: Run tests run: dart test --exclude-tags "remote_fetch" --platform=vm