Skip to content

feat: setup blog auth #127

feat: setup blog auth

feat: setup blog auth #127

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:
flutter-version: "3.16.5"
channel: "stable"
- name: Check formatting
run: |
cd frontend && dart run build_runner build --delete-conflicting-outputs && cd ..
dart format . --line-length=120 --set-exit-if-changed
- name: Check linting
run: |
flutter pub get --directory=frontend
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]
- name: Bootstrap
run: |
dart pub global activate coverage
dart run build_runner build --delete-conflicting-outputs
- name: Setup Test Database
run: dart run ./bin/tools/migrator.dart migrate
- 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