chore: Fix failing test #247
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
# This workflow uses actions that are not certified by GitHub. | |
# They are provided by a third-party and are governed by | |
# separate terms of service, privacy policy, and support | |
# documentation. | |
name: Test | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
jobs: | |
analyze: | |
name: Analyze Code | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- uses: dart-lang/[email protected] | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: stable | |
- uses: bluefireteam/melos-action@v3 | |
- name: Check formatting | |
run: dart format . --line-length=120 --set-exit-if-changed | |
- name: Check linting | |
run: | | |
dart run build_runner build | |
cd packages/shared && dart run build_runner build --delete-conflicting-outputs | |
dart analyze . --fatal-infos | |
test: | |
name: Run Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- uses: dart-lang/[email protected] | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: stable | |
- uses: bluefireteam/melos-action@v3 | |
- name: Bootstrap | |
run: | | |
dart pub global activate coverage | |
dart run build_runner build --delete-conflicting-outputs | |
cd packages/shared && dart run build_runner build --delete-conflicting-outputs | |
- name: Setup Test Database | |
run: dart run yaroorm_cli migrate --connection=local | |
- name: Run Tests | |
run: | | |
dart test --coverage=coverage --fail-fast | |
dart pub global run coverage:format_coverage --check-ignore --report-on=lib --lcov -o lcov.info -i ./coverage | |
- name: Upload Coverage | |
uses: codecov/codecov-action@v3 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
with: | |
files: lcov.info |