Merge pull request #61 from Flagsmith/fix/base-url #14
This file contains 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: Analyze and Test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
- reopened | |
- ready_for_review | |
jobs: | |
analyze: | |
runs-on: ubuntu-latest | |
name: Dart Analyze | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: '3.x' | |
channel: 'stable' | |
- run: flutter pub get | |
- run: flutter analyze | |
tests: | |
runs-on: ubuntu-latest | |
name: Flutter Test | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: '3.x' | |
channel: 'stable' | |
- run: flutter pub get | |
- run: flutter pub test | |
# TODO https://github.com/Flagsmith/flagsmith-flutter-client/issues/57 | |
publishing: | |
runs-on: ubuntu-latest | |
name: Dart Publish Package Test | |
needs: tests | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: '3.x' | |
channel: 'stable' | |
- run: flutter pub publish --dry-run | |