💚 Try to fix publish x2 #21
This file contains hidden or 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: Runnable (stable) | |
on: | |
push: | |
branches: | |
- main | |
- master | |
pull_request: | |
branches: | |
- main | |
- master | |
jobs: | |
analyze: | |
name: Analyze on ${{ matrix.os }} with ${{ matrix.flutter-version }} Flutter | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ ubuntu-latest ] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: flutter-actions/setup-flutter@v4 | |
with: | |
channel: stable | |
cache: true | |
- name: Log Dart/Flutter versions | |
run: | | |
dart --version | |
flutter --version | |
- name: Prepare dependencies | |
run: dart pub get | |
- name: Melos bootstrap | |
uses: bluefireteam/melos-action@v3 | |
- name: Check version consistency | |
run: | | |
dart run build_runner build -d | |
git --no-pager diff --exit-code lib/src/version.gen.dart | |
- name: Check Dart code formatting | |
if: matrix.flutter-version != 'min' | |
run: dart format lib -o none --set-exit-if-changed | |
- name: Analyze Dart code | |
run: flutter analyze . | |
- name: Publish dry-run | |
if: matrix.flutter-version != 'min' | |
run: dart pub publish --dry-run |