| name: package:extension_discovery |
| permissions: read-all |
| |
| on: |
| pull_request: |
| paths: |
| - '.github/workflows/extension_discovery.yaml' |
| - 'pkgs/extension_discovery/**' |
| push: |
| branches: [ main ] |
| paths: |
| - '.github/workflows/extension_discovery.yaml' |
| - 'pkgs/extension_discovery/**' |
| schedule: |
| - cron: '0 0 * * 0' # weekly |
| |
| defaults: |
| run: |
| working-directory: pkgs/extension_discovery |
| |
| jobs: |
| build: |
| runs-on: ubuntu-latest |
| strategy: |
| fail-fast: false |
| matrix: |
| sdk: [stable, dev] |
| include: |
| - sdk: stable |
| check-formatting: true |
| steps: |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 |
| - uses: dart-lang/setup-dart@e51d8e571e22473a2ddebf0ef8a2123f0ab2c02c |
| with: |
| sdk: ${{matrix.sdk}} |
| |
| - run: dart pub get |
| - run: | |
| (cd example/hello_world && dart pub get) |
| (cd example/hello_world_app && dart pub get) |
| (cd example/hello_world_german && dart pub get) |
| |
| - run: dart analyze --fatal-infos |
| |
| - run: dart format --output=none --set-exit-if-changed . |
| if: ${{matrix.check-formatting}} |
| |
| - run: dart test |