working-directory: bluevsred_flutter #4
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_Tests | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the code | |
uses: actions/checkout@v4 | |
- name: Install and set Flutter version | |
uses: subosito/flutter-action@v2.7.1 | |
with: | |
flutter-version: '3.19.3' | |
- name: Restore packages | |
working-directory: bluevsred_flutter | |
run: flutter pub get | |
- name: Analyze | |
working-directory: bluevsred_flutter | |
run: flutter analyze | |
- name: Run tests | |
working-directory: bluevsred_flutter | |
run: flutter test --coverage | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v4.0.1 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
slug: hawkbee1/bluevsred |