Skip to content

pin flutter version #35

pin flutter version

pin flutter version #35

name: Analyze and Test
on: [push]
jobs:
analyze:
runs-on: ubuntu-latest
name: Dart Analyze
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
flutter-version-file: pubspec.yaml
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-file: pubspec.yaml
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-file: pubspec.yaml
channel: 'any'
- run: flutter pub publish --dry-run