Skip to content

tech: Envoyer vers Firebase app distribution #60

tech: Envoyer vers Firebase app distribution

tech: Envoyer vers Firebase app distribution #60

name: continuous-integration
on:
push:
branches: ["main"]
paths:
- .github/workflows/continuous-integration.yml
- app/**
- packages/**
pull_request:
branches: ["main"]
paths:
- .github/workflows/continuous-integration.yml
- app/**
- packages/**
env:
FLUTTER_VERSION: 3.22.1
jobs:
continuous-integration:
runs-on: ubuntu-latest
steps:
- name: 📚 Git Checkout
uses: actions/checkout@v4
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
dsfr:
- 'packages/dsfr.dart/**'
- name: 🐦 Install flutter
uses: subosito/flutter-action@v2
with:
cache: true
channel: stable
flutter-version: ${{ env.FLUTTER_VERSION }}
- name: ✅ Check app (format, lint, tests)
run: |
cd app
dart format $(find . -name '*.dart' -not -name '*.g.dart') --set-exit-if-changed
flutter analyze --fatal-infos --fatal-warnings
flutter test --test-randomize-ordering-seed random
cd -
- name: ✅ Check dsfr (format, lint, tests)
if: steps.filter.outputs.dsfr == 'true'
run: |
cd packages/dsfr.dart
dart format $(find . -name '*.dart' -not -name '*.g.dart') --set-exit-if-changed
flutter analyze --fatal-infos --fatal-warnings
flutter test --test-randomize-ordering-seed random
cd -