mirror of
https://github.com/kuhyx/utils.git
synced 2026-11-10 20:07:18 +01:00
The pre-push coverage gate only ran for whoever had the local hook installed, which is deployment hygiene rather than a gate. Adds the mirrored workflow sync_settings_ui already has, so the 100% bar is enforced on push and PR. EmptyState.action was invented surface: no donor had it. home_inventory's three call sites are pure placeholders, and kuhylog's action-bearing _empty was explicitly excluded from the survey as a different element. Shipping a parameter nobody asked for on a widget that has no consumer yet is the failure mode this package is supposed to avoid, so it goes, with a comment recording why rather than leaving the next reader to rediscover it. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XS1m7b1piBtAL22USLW6jL
37 lines
723 B
YAML
37 lines
723 B
YAML
name: design_system tests
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
paths: ['design_system/**']
|
|
pull_request:
|
|
branches: [main]
|
|
paths: ['design_system/**']
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
working-directory: design_system
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Set up Flutter
|
|
uses: subosito/flutter-action@v2
|
|
with:
|
|
channel: stable
|
|
|
|
- name: Install dependencies
|
|
run: flutter pub get
|
|
|
|
- name: Analyze
|
|
run: flutter analyze
|
|
|
|
- name: Run tests with coverage
|
|
run: flutter test --coverage
|
|
|
|
- name: Enforce 100% line coverage
|
|
run: scripts/check_coverage.sh coverage/lcov.info 100
|