Skip to content

fix(ci): Incorrect publish workflow for Flutter #18

fix(ci): Incorrect publish workflow for Flutter

fix(ci): Incorrect publish workflow for Flutter #18

Workflow file for this run

name: Analyze and Test
on:
push:
branches:
- main
pull_request:
types:
- opened
- synchronize
- reopened
- ready_for_review
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: stable
- 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: stable
- run: flutter pub get
- run: flutter test
# TODO https://github.com/Flagsmith/flagsmith-flutter-client/issues/57
publish-dry-run:
runs-on: ubuntu-latest
name: Dart Publish Package Test
needs: tests
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
flutter-version: ${{ env.FLUTTER_VERSION }}
channel: stable
- run: flutter pub publish --dry-run