Skip to content

bump Flutter

bump Flutter #32

name: Analyze and Test
on: [push]
env:
FLUTTER_VERSION: 3.x
jobs:
analyze:
runs-on: ubuntu-latest
name: Dart Analyze
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
flutter-version: ${{ env.FLUTTER_VERSION }}
channel: 'any'
- run: flutter pub get
- run: flutter analyze
tests:
runs-on: ubuntu-latest
name: Flutter Test
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
flutter-version: ${{ env.FLUTTER_VERSION }}
channel: 'any'
- run: flutter pub get
- run: flutter pub test
score:
runs-on: ubuntu-latest
name: Dart package score
steps:
- uses: actions/checkout@v4
- uses: axel-op/dart-package-analyzer@v3
with:
githubToken: ${{ secrets.GITHUB_TOKEN }}
publishing:
runs-on: ubuntu-latest
name: Dart Publish Package Test
needs: tests
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
flutter-version: ${{ env.FLUTTER_VERSION }}
channel: 'any'
- run: flutter pub publish --dry-run