Skip to content

PR-005 — Frontend Composition Root & Dependency Wiring #22

PR-005 — Frontend Composition Root & Dependency Wiring

PR-005 — Frontend Composition Root & Dependency Wiring #22

Workflow file for this run

name: Frontend CI
on:
push:
paths:
- 'frontend/**'
pull_request:
paths:
- 'frontend/**'
jobs:
build-and-test:
name: Build, analyze and test
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Cache Pub packages
uses: actions/cache@v4
with:
path: |
~/.pub-cache
key: ${{ runner.os }}-pub-${{ hashFiles('**/pubspec.lock') }}
restore-keys: |
${{ runner.os }}-pub-
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: stable
- name: Get dependencies
working-directory: frontend
run: flutter pub get
- name: Format check
working-directory: frontend
run: dart format --set-exit-if-changed .
- name: Static analysis
working-directory: frontend
run: flutter analyze
- name: Run tests
working-directory: frontend
run: flutter test --no-pub