feat: Migration to capability-based API pt1 #102
Workflow file for this run
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: On PR | |
| on: [pull_request] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| flutter-version: ["3.24.3", "3.27.4", "3.29.3", "3.32.7"] | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: subosito/flutter-action@v2 | |
| with: | |
| flutter-version: ${{ matrix.flutter-version }} | |
| channel: "stable" | |
| cache: true | |
| - name: Disable animations | |
| run: flutter config --no-cli-animations | |
| - name: Load packages | |
| run: flutter pub get | |
| - name: Analyze | |
| run: flutter analyze | |
| - name: Run tests | |
| run: | | |
| flutter test --no-pub --coverage --test-randomize-ordering-seed=random | |
| - name: Upload base coverage to Coveralls | |
| uses: coverallsapp/github-action@master | |
| with: | |
| github-token: ${{ secrets.DUIT_KERNEL_COVERALLS_REPO_TOKEN }} | |
| path-to-lcov: coverage/lcov.info | |
| flag-name: flutter-${{ matrix.flutter-version }}-UNIT | |
| parallel: true | |
| fail-on-error: false | |
| - name: Run warmup test set | |
| run: | | |
| flutter test --no-pub --coverage --dart-define=duit:enable-warm-up=true test/warmup_test.dart | |
| - name: Upload warm-up coverage to Coveralls | |
| uses: coverallsapp/github-action@master | |
| with: | |
| github-token: ${{ secrets.DUIT_KERNEL_COVERALLS_REPO_TOKEN }} | |
| path-to-lcov: coverage/lcov.info | |
| flag-name: flutter-${{ matrix.flutter-version }}-WUP-UNIT | |
| parallel: true | |
| fail-on-error: false | |
| finish: | |
| needs: test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Finish Coveralls | |
| uses: coverallsapp/github-action@master | |
| with: | |
| github-token: ${{ secrets.DUIT_KERNEL_COVERALLS_REPO_TOKEN }} | |
| parallel-finished: true | |
| fail-on-error: false |