feat: Ajouter la page Commencer #54
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | |
if: github.event.pull_request.draft == false | |
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 - |