release: Prepare release v2.0.0 #27
This file contains hidden or 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 | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: subosito/flutter-action@v2 | |
| with: | |
| flutter-version: '3.27.3' | |
| channel: 'stable' | |
| - name: Setup LCOV | |
| uses: hrishikesh-kadam/setup-lcov@v1 | |
| - name: Override dependencies | |
| run: "echo 'dependency_overrides: { dart_style: ^2.0.1 }' > pubspec_overrides.yaml && cp pubspec_overrides.yaml example/" | |
| - name: Install dependencies | |
| run: dart pub get | |
| - name: Verify formatting | |
| run: dart format --output=none --set-exit-if-changed lib | |
| - name: Analyze project source | |
| run: dart analyze lib | |
| - name: Generate the mocks | |
| run: flutter pub run build_runner build --delete-conflicting-outputs | |
| - name: Run tests | |
| run: chmod +x run_tests.sh && ./run_tests.sh |