Optimised Pins providers usage #922
Workflow file for this run
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
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
name: Flutter Unit tests | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
flutter: | |
name: Flutter Unit Tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: subosito/flutter-action@v2 | |
name: Set up flutter | |
with: | |
channel: 'stable' | |
- name: Generate env | |
working-directory: ./app | |
run: dart run enven | |
- name: Run flutter unit tests | |
working-directory: app | |
run: flutter test --coverage | |
- name: Upload test results to Codecov | |
if: ${{ !cancelled() }} | |
uses: codecov/codecov-action@v4 | |
with: | |
working-directory: app | |
directory: coverage | |
flags: unittest | |
name: flutter-widget-tests | |
token: ${{ secrets.CODECOV_TOKEN }} |