Merge pull request #4 from Baseflow/create_alias #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: flutter_ioc | |
on: | |
push: | |
branches: [ main ] | |
paths: | |
- 'packages/flutter_ioc/**' | |
- '.github/workflows/flutter_ioc.yaml' | |
pull_request: | |
branches: [ main ] | |
paths: | |
- 'packages/flutter_ioc/**' | |
- '.github/workflows/flutter_ioc.yaml' | |
jobs: | |
format: | |
name: CI - Flutter IoC | |
runs-on: ubuntu-latest | |
env: | |
source-directory: ./packages/flutter_ioc | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: 'stable' | |
- name: Download dependencies | |
run: flutter pub get | |
working-directory: ${{env.source-directory}} | |
- name: Run Flutter Format | |
run: dart format --set-exit-if-changed . | |
working-directory: ${{env.source-directory}} | |
- name: Run Flutter Analyzer | |
run: flutter analyze | |
working-directory: ${{env.source-directory}} | |
- name: Run unit tests | |
run: flutter test | |
working-directory: ${{env.source-directory}} |