Skip to content

feat: Re-enable Frontend #237

feat: Re-enable Frontend

feat: Re-enable Frontend #237

Workflow file for this run

# 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
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
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