Skip to content

Add assert for mutually exclusive errorBuilder and errorText [Flutter core] #307

Add assert for mutually exclusive errorBuilder and errorText [Flutter core]

Add assert for mutually exclusive errorBuilder and errorText [Flutter core] #307

Workflow file for this run

name: Build
on:
push:
branches: [ master, main ]
paths-ignore:
- "**.md"
pull_request:
paths-ignore:
- "**.md"
schedule:
# Run daily at 03:00 UTC to catch regressions from new Flutter releases
# (scheduled workflows only run on the default branch).
- cron: "0 3 * * *"
jobs:
build:
name: Run flutter test and analyze
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
# Minimum supported version (keep in sync with pubspec.yaml).
- flutter-version: "3.32.0"
- channel: stable
# We'll add master after migrating to Melos 7.x.x and flutter workspaces
# - channel: master
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Flutter environment
uses: subosito/flutter-action@v2.7.1
with:
flutter-version: ${{ matrix.flutter-version }}
channel: ${{ matrix.channel }}
- name: Set environment paths
run: |
echo "$HOME/.pub-cache/bin" >> $GITHUB_PATH
echo "PUB_CACHE="$HOME/.pub-cache"" >> $GITHUB_ENV
- name: Setup melos
run: |
dart pub global activate melos
melos --version
melos bootstrap
- name: Verify formatting
run: melos exec dart format --output=none --set-exit-if-changed .
# Consider passing '--fatal-infos' for slightly stricter analysis.
- name: Run flutter analyze
run: melos run analyze
- name: Run tests
run: melos run test