Skip to content

upgrade: update dependency flutter to v3.27.0 #865

upgrade: update dependency flutter to v3.27.0

upgrade: update dependency flutter to v3.27.0 #865

Workflow file for this run

name: Build
on:
pull_request:
types: [opened, synchronize]
push:
branches:
- 'main'
jobs:
build:
name: Run on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v4
- uses: wasabeef/import-asdf-tool-versions-action@v1.0.3
id: asdf
- uses: subosito/flutter-action@v2
with:
flutter-version: ${{ steps.asdf.outputs.flutter }}
channel: stable
cache: true
- uses: dart-lang/setup-dart@v1
with:
sdk: ${{ steps.asdf.outputs.dart }}
- name: Set environment
if: startsWith(matrix.os, 'macos') || startsWith(matrix.os, 'ubuntu')
run: echo "$HOME/.pub-cache/bin" >> $GITHUB_PATH
- name: Set environment
if: startsWith(matrix.os, 'windows')
run: echo "%LOCALAPPDATA%\Pub\Cache\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: Get dependencies
run: |
dart pub global activate melos
melos bootstrap
- name: Run tests for Dart packages
if: startsWith(matrix.os, 'ubuntu')
run: melos test:dart --no-select
- name: Run tests for Flutter packages
if: startsWith(matrix.os, 'ubuntu')
run: melos test:flutter --no-select
- name: Run coverage
if: startsWith(matrix.os, 'ubuntu')
run: melos coverage
- uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./packages/core/coverage.lcov
- name: Generate example
run: |
melos run gen:examples:command --no-select
melos run gen:examples:build_runner --no-select
- name: Check for any formatting and statically analyze the code.
run: |
melos format
melos analyze