Skip to content

docs: add test summary and final production readiness report #7

docs: add test summary and final production readiness report

docs: add test summary and final production readiness report #7

Workflow file for this run

name: Tests
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
jobs:
test:
name: Run Tests
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
flutter-channel: [stable, beta]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: ${{ matrix.flutter-channel }}
cache: true
- name: Get dependencies
run: flutter pub get
- name: Verify formatting
run: dart format --set-exit-if-changed .
if: matrix.os == 'ubuntu-latest' && matrix.flutter-channel == 'stable'
- name: Analyze code
run: flutter analyze
- name: Run tests
run: flutter test
- name: Upload test results
if: failure()
uses: actions/upload-artifact@v4
with:
name: test-results-${{ matrix.os }}-${{ matrix.flutter-channel }}
path: test/**/*.dart
# Test on Flutter master channel (early warning for breaking changes)
# Failures are allowed but will be reported for investigation
test-master:
name: Run Tests (Flutter Master - Advisory)
runs-on: ubuntu-latest
continue-on-error: true # Don't block CI if master channel breaks
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Flutter (master channel)
uses: subosito/flutter-action@v2
with:
channel: master
cache: true
- name: Get dependencies
run: flutter pub get
- name: Analyze code
run: flutter analyze
continue-on-error: true
- name: Run tests
run: flutter test
- name: Report master channel status
if: failure()
run: |
echo "::warning::Tests failed on Flutter master channel. This may indicate upcoming breaking changes."
echo "::warning::Review failures and consider updating code if breaking changes are confirmed."
- name: Upload test results
if: failure()
uses: actions/upload-artifact@v4
with:
name: test-results-master-advisory
path: test/**/*.dart