Skip to content

fix(actions): rafraîchir après modification d'une action #898

fix(actions): rafraîchir après modification d'une action

fix(actions): rafraîchir après modification d'une action #898

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/**
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-file: app/pubspec.yaml
- 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 -